• Stars
    star
    5,582
  • Rank 7,325 (Top 0.2 %)
  • Language
    PHP
  • License
    Apache License 2.0
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🚀 PHP Microservice Full Coroutine Framework

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 crontab
  • 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

More Repositories

1

alphp

A micro PHP Docker environment based on an Alpine image. Can be used for container publishing, the completed image is only 30-40M
Dockerfile
100
star
2

swoft-component

📦 This is a repository of centralized management of all swoft core components
PHP
97
star
3

swoft-doc

📖 Swoft Framework Document(swoft.io)
HTML
96
star
4

swoft-framework

[READ ONLY] Swoft Framework, base of Swoft
PHP
66
star
5

awesome-swoft

A curated list of bookmarks, packages, tutorials, videos and other cool resources from the Swoft ecosystem
49
star
6

swoft-cli

🛠️ Command line tool for quick use swoft. Support create new application, generate class, hot reload server and more.
PHP
47
star
7

swoole-ide-helper

💪 IDE helper for Swoft and Swoole
PHP
42
star
8

swoft-devtool

🛠️ Dev tool for Swoft [READ ONLY]
PHP
29
star
9

swoft-db

[READ ONLY] Database Compoment for Swoft
PHP
26
star
10

swoft-ext

🗂 Swoft extension components: amqp, apollo, breaker, consul, elasticsearch, grpc, kafka, limiter, view, zipkin
PHP
22
star
11

swoft-docker

Docker PHP development environment for swoft
Dockerfile
21
star
12

swoft-websocket-server

[READ ONLY] WebSocket Server for Swoft
PHP
17
star
13

swoft-design

swoft framework design
14
star
14

swoft-redis

[READ ONLY] Redis Compoment for Swoft
PHP
13
star
15

swoft-www-cn

Swoft chinese documents
HTML
12
star
16

swoft-http-client

HTTP Client Compoment for Swoft 1.x
PHP
12
star
17

swoft-auth

🔐 Auth compoment for Swoft
PHP
12
star
18

swoft-http-server

[READ ONLY] Swoft Http Server base on Swoole
PHP
12
star
19

swoft-rpc-server

[READ ONLY] RPC Server for Swoft
PHP
11
star
20

swoft-stdlib

[READ ONLY] PHP std tool class, helper class: string, array, object, json, env, php and more
PHP
10
star
21

swoft-amqp

Swoft amqp component
PHP
9
star
22

swoft-session

[READ ONLY] Http Session Compoment for Swoft
PHP
9
star
23

swoft-console

[READ ONLY] Console Compoment for Swoft
PHP
8
star
24

swoft-elasticsearch

Swoft elasticsearch component
PHP
8
star
25

swoft-http-message

[READ ONLY] HTTP Message Compoment for Swoft
PHP
8
star
26

swoft-cache

Cache Compoment for Swoft
PHP
7
star
27

swoft-rpc

[READ ONLY] RPC Compoment for Swoft
PHP
7
star
28

swoft-annotation

[READ ONLY] Swoft annotation component
PHP
6
star
29

swoft-memory

Memory Component for Swoft
PHP
6
star
30

swoft-apollo

[READ ONLY] Swoft Apollo Component
PHP
6
star
31

swoft-skeleton

Swoft skeleton project, intended to create bran-new appliacations fast
PHP
6
star
32

swoft-rpc-client

[READ ONLY] RPC Client Compoment for Swoft
PHP
6
star
33

swoft-swagger

[DEVELOPING] Swagger Compoment for Swoft
PHP
6
star
34

swoft-server

[READ ONLY] Swoft Server Component
PHP
6
star
35

swoft-event

[READ ONLY] Swoft event component
PHP
5
star
36

swoft-view

[READ ONLY] View Compoment for Swoft
PHP
5
star
37

swoft-tcp-server

[READ ONLY] Swoft TCP Server Component
PHP
5
star
38

swoft-whoops

[READ ONLY] Swoft errors for cool kids by filp/whoops
PHP
5
star
39

swoft-swoole-tracker

[READ ONLY] Enable Swoole Tracker On Swoft
PHP
5
star
40

swoft-connection-pool

[READ ONLY] Swoft Connection Pool Component
PHP
5
star
41

swoft-task

[READ ONLY] Task Compoment for Swoft
PHP
5
star
42

swoft-tcp

[READ ONLY] Swoft Tcp Protocol Component
PHP
4
star
43

swoft-consul

[READ ONLY] Swoft Consul Component
PHP
4
star
44

swoft-elasticsearch-client

No-blocking Coroutine Elasticsearch Client
4
star
45

swoft-trace

[DEVELOPING] Trace Component for Swoft
PHP
4
star
46

swoft-queue

[DEVELOPING] Queue Component for Swoft
4
star
47

swoft-http-project

Swoft http application demo project
PHP
4
star
48

swoft-process

[READ ONLY] Process Compoment for Swoft
PHP
4
star
49

swoft-service-governance

Service Governance for Swoft 1.0
PHP
4
star
50

swoft-case

👏 Swoft Project Case Collection
4
star
51

swoft-i18n

[READ ONLY] I18n Translations Component for Swoft
PHP
4
star
52

swoft-tcp-project

Swoft tcp demo project
4
star
53

swoft-crontab

[READ ONLY] Swoft Crontab Component
PHP
3
star
54

swoft-grpc

[PLAN] Swoft grpc component
3
star
55

swoft-limiter

[READ ONLY] Swoft Limiter Component
PHP
3
star
56

swoft-swlib

Wrap some swoole util class
PHP
3
star
57

swoft-breaker

[READ ONLY] Swoft Circuit Breaker
PHP
3
star
58

swoft-kafka

[PLAN] Swoft kafka Component
3
star
59

swoft-validator

[READ ONLY] Swoft validator component
PHP
3
star
60

swoft-testlib

PHP
3
star
61

swoft-websocket-project

Swoft websocket demo project
PHP
3
star
62

swoft-error

[READ ONLY] Error Handler Component of Swoft
PHP
3
star
63

swoft-config

[READ ONLY] Swoft config component
PHP
3
star
64

swoft-serialize

Data serializer for PHP
PHP
3
star
65

swoft-bean

[READ ONLY] Swoft bean container
PHP
2
star
66

forum

Swoft Official Forum. Swoft 官方论坛
2
star
67

swoft-zipkin

[DEVELOPING] Swoft Zipkin Component
2
star
68

swoft-aop

[READ ONLY] Swoft aop component
PHP
2
star
69

swoft-log

[READ ONLY] Swoft log component
PHP
2
star
70

swoft-socketio

[Work in progress]
PHP
2
star
71

swoft-defer

Swoole has been added `defer()` function after v4.2.9, so this project will be archived.
PHP
2
star
72

swoft-www

Swoft www
HTML
2
star
73

swoft-proxy

[READ ONLY] Swoft proxy
PHP
2
star
74

swoft-data-parser

Data parser of swoft 1.0(Now 2.0, please use swoft/swoft-serialize)
PHP
2
star
75

docker

Some docker files for build php images
Dockerfile
1
star