PHP builds a high-performance API architecture based on SW-X framework
preface
Official website address: SW-X framework - PHP swoolex framework focusing on high-performance and convenient development
I hope the big guys raise their hands and give my little brother a star: https://github.com/swoolex/swoolex
1. 404 interface configuration
In the HTTP service, when the corresponding route cannot be found, it will ...
Posted by nikes90 on Fri, 04 Mar 2022 08:05:05 +0100
PHP builds a high-performance API architecture based on SW-X framework
prefaceOfficial website address: SW-X framework - PHP swoolex framework focusing on high-performance and convenient developmentI hope the big guys raise their hands and give my little brother a star: https://github.com/swoolex/swoolex1. What is Restful componentIn SW-X, Restful component is the encapsulation support of API return value structur ...
Posted by Bidibule on Tue, 01 Mar 2022 05:03:59 +0100
hyperf FAQ summary (longer term)
Environment php8 0 hyperf2. 2 swoole4. five
1. use Hyperf\Di\Annotation\Inject must be introduced to instantiate use class with annotation;
2. To achieve the effect of laravel thinkphp using cache, you need to define your own class
<?php
namespace App\Library;
use Hyperf\Utils\ApplicationContext;
use Psr\SimpleCache\CacheInterface;
clas ...
Posted by Zephyr_Pure on Sat, 25 Dec 2021 12:37:24 +0100
Blocking Model for unix Network Model
My five handwritten network models, welcome comments and suggestions from all gods;
Environment preparation: php7.4, swoole4.8.2. (Here I use mac)
Hobrew installation: Install Homebrew Tutorial-Accent Maple-Blog Park in China under mac
php installation: Install php7.4+mysql5.7+nginx e ...
Posted by andriy on Fri, 03 Dec 2021 18:38:35 +0100