PHP Classes

swoft: Framework to develop coroutine based application

Recommend this page to a friend!
  Info   View files Documentation   View files View files (114)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 72 All time: 9,887 This week: 263Up
Version License PHP version Categories
swoft 1.0Custom (specified...5PHP 5, Libraries, Web services
Description Author

This package provides a framework to develop coroutine based application.

It is based on the Swole extension to run parallel tasks using coroutines that are executed under a single CPU process.

Among other features, the package provides pure PHP based network servers that implement the protocols: HTTP, Web sockets, RPC and other TCP based protocols.

Innovation Award
PHP Programming Innovation award nominee
September 2019
Number 3
Swole is a PHP extension that allows PHP developers to implement coroutine based applications, so it can run multiple parallel tasks in the same HTTP request and finish handling that request on less time, thus making PHP applications run faster than using traditional pure PHP based applications.

This package is a framework that takes advantages of Swole to develop PHP applications easily.

Manuel Lemos
Picture of stelin
Name: stelin <contact>
Classes: 1 package by
Country: China China
Innovation award
Innovation award
Nominee: 1x

 

Details

swoft-logo

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

start-http-server

PHP microservice coroutine framework

> ????

Introduction

Swoft is a PHP microservices coroutine framework based on the Swoole extension. Like Go, Swoft has a built-in coroutine web server and a common coroutine client and is resident in memory, independent of traditional PHP-FPM. There are similar Go language operations, similar to the Spring Cloud framework flexible annotations, powerful global dependency injection container, comprehensive service governance, flexible and powerful AOP, standard PSR specification implementation and so on.

Through three years of accumulation and direction exploration, Swoft has made Swoft the Spring Cloud in the PHP world, which is the best choice for PHP's high-performance framework and microservices management.

Feature

  • Built-in high performance network server(Http/Websocket/RPC/TCP)
  • Flexible componentization
  • Flexible annotation function
  • Diversified command terminal(Console)
  • Powerful Aspect Oriented Programming?AOP?
  • Perfect Container management?Dependency Injection (DI)
  • Flexible event mechanism
  • Implementation of HTTP message based on PSR-7
  • Event Manager Based on PSR-14
  • Middleware based on PSR-15
  • Internationalization(i18n) support
  • Simple and efficient parameter validator
  • High performance connection pool(Mysql/Redis/RPC)?Automatic reconnection
  • Database is highly compatible Laravel
  • Cache Redis highly compatible Laravel
  • Efficient task processing
  • Efficient seconds corntab
  • Process pool
  • Flexible exception handling
  • Powerful log system
  • Service registration & discovery
  • Service breaker
  • Service restrictions
  • Service fallback
  • Configuration Center
  • Apollo
  • Consul

Document

Discuss

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

  • TCP Server
[root@swoft swoft]# php bin/swoft tcp:start

  • Process Pool
[root@swoft swoft]# php bin/swoft process:start

Core Components

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

Extension Components

Component Name | Packagist Version -----------------|--------------------- swoft-apollo | Latest Stable Version swoft-breaker | 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

License

Swoft is an open-source software licensed under the LICENSE

  Files folder image Files  
File Role Description
Files folder image.github (2 files)
Files folder imageapp (3 files, 17 directories)
Files folder imagebin (2 files)
Files folder imageconfig (2 files, 1 directory)
Files folder imagepublic (1 directory)
Files folder imageresource (1 directory)
Accessible without login Plain text file .dockerignore Data Auxiliary data
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .env.example Data Auxiliary data
Accessible without login Plain text file .php_cs Example Example script
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.cn.json Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file dev.composer.json Data Auxiliary data
Accessible without login Plain text file docker-compose.yml Data Auxiliary data
Accessible without login Plain text file Dockerfile Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpstan.neon.dist Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file README.zh-CN.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:72
This week:0
All time:9,887
This week:263Up

For more information send a message to info at phpclasses dot org.