Download the PHP package dcrswoole/framework without Composer
On this page you can find all versions of the php package dcrswoole/framework. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package framework
整合各种包,基于Swoole 实现的框架
- laravel orm
- restful route
- predis
- guzzle
- monolog
- http websocket
- rabbitmq
- container
- event
- middleware 支持注解配置中间件
- validate
- crontab
- command
- collection
- carbon
- dotenv config
- 支持注解配置路由 注解配置中间件
- aop 切面
- process
安装
分层 (demo未按此方式)
controller->service ->repository->model
http:
websocket:
console:
crontab:
migrate:
container
路由注解和中间件注解
路由注解 和 中间件注解 以及Inject注解 使用
多个中间件注解
从容器 拿对象 获取 参数
redis 操作
orm model ,使用和laravel orm一致
控制器validate
获取配置 需要use DI\Attribute\Inject
中间件
Console 命令应用 需要在app/Console/Kernel.php
配置 命令类
crontab定时任务 需要在 /config/crontab.php
配置 定时任务
event 事件
listener 监听者
触发事件
或者
切面 aop
文档
更多例子查看 代码demo
ab 本机macbook pro 压测 Requests per second: 58832.04 [#/sec] (mean)
wrk 压测 Requests/sec: 79540.12
composer依赖组件
关联
参考 hyperf laravel webman 项目
https://github.com/guanhui07/dcr fpm以及workerman实现websocket
https://github1s.com/walkor/webman-framework
https://github1s.com/hyperf/hyperf
https://github1s.com/laravel/laravel
https://github.com/SerendipitySwow/Serendipity-job
https://github.com/sunsgneayo/annotation 路由注解参考
todo:
类似hyperf
实现 Command Crontab AutoController Cacheable 等注解
我的其他包:
https://github.com/guanhui07/dcr 借鉴Laravel实现的 PHP Framework ,FPM模式、websocket使用的workerman、支持容器、PHP8特性attributes实现了路由注解、中间件注解、Laravel Orm等特性
https://github.com/guanhui07/redis Swoole模式下 Redis连接池
https://github.com/guanhui07/facade facade、门面 fpm模式下可使用
https://github.com/guanhui07/dcr-swoole-crontab 基于swoole实现的crontab秒级定时任务
https://github.com/guanhui07/timer php定时器,参考了workerman源码 实现一个单进程(守护进程)的定时器。
https://github.com/guanhui07/database 基于 illuminate/database 做的连接池用于适配Swoole的协程环境
https://github.com/guanhui07/dcr-swoole 高性能PHP Framework ,Cli模式,基于Swoole实现,常驻内存,协程框架,支持容器、切面、PHP8特性attributes实现了路由注解、中间件注解、支持Laravel Orm等特性
https://github.com/guanhui07/geohash geohash 用于附近的人
https://github.com/guanhui07/open-ai open-ai chatgpt调用
All versions of framework with dependencies
ext-bcmath Version *
ext-curl Version *
ext-gd Version *
ext-json Version *
ext-libxml Version *
ext-openssl Version *
ext-pcntl Version *
ext-pdo Version *
ext-redis Version *
ext-simplexml Version *
ext-swoole Version >=4.8
doctrine/annotations Version ^2.0
doctrine/migrations Version ^3.5
elasticsearch/elasticsearch Version 7.16
firebase/php-jwt Version ^6.3
gregwar/captcha Version ^1.1
guanhui07/database Version dev-master
guanhui07/dcr-swoole-crontab Version dev-master
guanhui07/guzzle Version ^1.2
guanhui07/redis Version ^1.1
hyperf/aop-integration Version ^1.1
hyperf/utils Version 3.0.0
hyperf/di Version 3.0.0
inhere/console Version ^4.1
inhere/php-validate Version ^2.8
intervention/image Version ^2.7
middlewares/utils Version ^3.0
monolog/monolog Version ^2.8
mwangithegreat/faker Version ^1.9
nesbot/carbon Version ^2.6
nikic/fast-route Version ^1.3
opis/closure Version ^3.6
php-amqplib/php-amqplib Version ^3.2
php-di/php-di Version ^7.0
qiniu/php-sdk Version ^7.7
spatie/image Version ^2.2
symfony/event-dispatcher Version ^6.2
symfony/finder Version ^5.0
casbin/casbin Version ^3.20
vlucas/phpdotenv Version ^5.4