124 Star 554 Fork 132

GVPswoft / swoft

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.zh-CN.md 9.10 KB
一键复制 编辑 原始数据 按行查看 历史

swoft

Latest Stable Version Build Status Docker Build Status Php Version Swoole Version Swoft Doc Swoft License Gitter

start-http-server

PHP 高性能微服务协程框架

EN README

简介

Swoft 是一款基于 Swoole 扩展实现的 PHP 微服务协程框架。Swoft 能像 Go 一样,内置协程网络服务器及常用的协程客户端且常驻内存,不依赖传统的 PHP-FPM。有类似 Go 语言的协程操作方式,有类似 Spring Cloud 框架灵活的注解、强大的全局依赖注入容器、完善的服务治理、灵活强大的 AOP、标准的 PSR 规范实现等等。

Swoft 通过长达三年的积累和方向的探索,把 Swoft 打造成 PHP 界的 Spring Cloud, 它是 PHP 高性能框架和微服务治理的最佳选择。

功能特色

  • 内置高性能网络服务器(Http/Websocket/RPC/TCP)
  • 灵活的组件功能
  • 强大的注解功能
  • 多样化的命令终端(控制台)
  • 强大的面向切面编程(AOP)
  • 容器管理,依赖注入(DI)
  • 灵活的事件机制
  • 基于PSR-7的HTTP消息的实现
  • 基于PSR-14的事件管理
  • 基于PSR-15的中间件
  • 国际化(i18n)支持
  • 简单有效的参数验证器
  • 高性能连接池(Mysql/Redis/RPC),自动重新连接
  • 数据库高度兼容Laravel的使用方式
  • Redis高度兼容Laravel的使用方式
  • 秒级定时任务
  • 进程池
  • 高效的任务处理
  • 灵活的异常处理
  • 强大的日志系统
  • 服务注册与发现
  • 配置中心
  • 服务限流
  • 服务降级
  • 服务熔断
  • Apollo
  • Consul

在线文档

学习交流

免费技术支持

support

Requirement

Install

Composer

composer create-project swoft/swoft swoft

Start

  • Http server
[root@swoft swoft]# php bin/swoft http:start
  • WebSocket server
[root@swoft swoft]# php bin/swoft ws:start
  • RPC server
[root@swoft swoft]# php bin/swoft rpc:start

核心组件

Component Name Packagist Version
swoft-annotation Latest Stable Version
swoft-config Latest Stable Version
swoft-db Latest Stable Version
swoft-framework Latest Stable Version
swoft-i18n Latest Stable Version
swoft-proxy Latest Stable Version
swoft-rpc-client Latest Stable Version
swoft-stdlib Latest Stable Version
swoft-tcp-server Latest Stable Version
swoft-aop Latest Stable Version
swoft-connection-pool Latest Stable Version
swoft-error Latest Stable Version
swoft-http-message Latest Stable Version
swoft-log Latest Stable Version
swoft-redis Latest Stable Version
swoft-rpc-server Latest Stable Version
swoft-task Latest Stable Version
swoft-validator Latest Stable Version
swoft-bean Latest Stable Version
swoft-console Latest Stable Version
swoft-event Latest Stable Version
swoft-http-server Latest Stable Version
swoft-process Latest Stable Version
swoft-rpc Latest Stable Version
swoft-server Latest Stable Version
swoft-tcp Latest Stable Version
swoft-websocket-server Latest Stable Version

扩展组件

Component Name Packagist Version
swoft-apollo Latest Stable Version
swoft-breaker Latest Stable Version
swoft-cache Latest Stable Version
swoft-crontab Latest Stable Version
swoft-consul Latest Stable Version
swoft-limiter Latest Stable Version
swoft-view Latest Stable Version
swoft-whoops Latest Stable Version
swoft-session Latest Stable Version

License

Swoft is an open-source software licensed under the LICENSE

PHP
1
https://gitee.com/swoft/swoft.git
git@gitee.com:swoft/swoft.git
swoft
swoft
swoft
master

搜索帮助