Menu

PHP for developing APP interfaces

{{ product.price_format }}
{{ product.origin_price_format }}
Quantity:
SKU:{{ product.sku }}
Model: {{ product.model }}

{{ variable.name }}

{{ value.name }}

Introduction: In the era of front-end and back-end separation, many companies choose to develop APP backend apis (interfaces) using PHP. However, traditional PHP development apis do not systematically treat PHP as an engineering project for development and do not clearly define the responsibilities of each module. Therefore, this course relatively proposes a more universal way to develop PHP apis, simply starting from API input and output, API authentication, Business exception handling and other modules are used to describe each module of the API and the relationships among them. At the end of the course, an API example was introduced, which connected all the modules of the API, enabling everyone to achieve a comprehensive understanding.

Chapter 1 Course Introduction

It provides a basic understanding of the APP interface and introduces how the APP interface communicates with the server.

 

1-1 Course Introduction 

 

1-2  Introduction to APP Interfaces

 

1-3 Communication between the client and the server

Chapter 2 Client Parameter Passing

The client gives some gifts to the server. How the client passes parameters and how the server retrieves them.

 

2-1 How does the client pass parameters

 

2-2 How does the server obtain parameters

Chapter 3 Introduction to Server-side Output json

The server gives the client some gifts in return as a token of reciprocity. Output of the APP interface.

 

3-1 Introduction to Json

 

The App interface is encapsulated and output in Json format

Chapter 4 APP Interface Authorization

Who has the key to unlock my lock? We must not allow others to illegally access our interface. Authentication of APP interfaces.

 

4-1 What is the authentication of APP interfaces

 

4-2 What is JsonWebToken

 

4-3 Code Encapsulation of JWT Usage 1

 

4-4 Code Encapsulation of JWT Usage 2

 

How does the server use JWT to issue tokens

 

How does the server authenticate tokens

Chapter 5 Business Logic Processing

If the business logic is abnormal, how should we handle it gracefully?

 

5-1 Error Code Definition

 

5-2 How to handle business anomalies

Chapter 6 Interface Information Development

Connect the key modules of the APP interface with examples and integrate them seamlessly.

 

6-1 Introduce the user information interface

 

6-2 User Table Design

 

6-3 Develop user information interfaces

 

6-4 Use redis cache to accelerate the user information interface

Chapter 7 Course Summary

 

7-1 Course Summary