Migrated repository
Go to file
2022-09-27 14:01:21 +08:00
docs feat: techempower.com Round 21 2022-07-28 22:03:35 +08:00
examples feat:examples: \PDO::ATTR_EMULATE_PREPARES => false 2022-05-22 18:13:32 +08:00
shell feat:mix:add token 2021-08-03 16:50:59 +08:00
src Update Connection.php 2022-09-26 20:56:16 +08:00
.gitignore 增加子模块 2019-09-19 17:34:59 +08:00
composer.json feat:guzzle: mix/guzzle废弃移除相关依赖 2022-06-30 18:34:22 +08:00
LICENSE Create LICENSE 2018-07-10 22:34:11 +08:00
README_EN.md update readme 2022-04-13 13:54:22 +08:00
README.md feat: techempower.com Round 21 2022-07-28 22:03:35 +08:00
SWOOLE-ISSUES.md feat:mix:SWOOLE-ISSUES.md 2021-09-10 14:48:43 +08:00
techempower-benchmark.png feat:docs:add techempower-benchmark 2021-10-11 10:02:50 +08:00
web-frameworks-benchmark.png feat:mix:add benchmarks 2021-08-31 17:52:25 +08:00

OpenMix 出品:https://openmix.org



MixPHP

Mix PHP

中文 | English

MixPHP is a PHP command-line development framework; HTTP based on Vega can support both Swoole, Swow, WorkerMan, FPM, CLI-Server ecosystems at the same time, and can be switched seamlessly; V3 is a highly decoupled version, the overall code is based on multiple independent Even if users do not use our scaffolding, they can also use these independent modules, and all modules support native development. For example: you can only use mix/vega to work with laravel orm; you can use mix/database and mix/redis in any environment; you can use mix/grpc native code to write gRPC; all modules can be combined like building blocks.

Standalone module

All core modules can be used independently, and all support native code development.

  • mix/vega CLI mode HTTP network framework written in PHP, supports Swoole, Swow, WorkerMan, FPM, CLI-Server
  • mix/database Lightweight database that can be used in various environments, supports FPM, CLI, Swoole, WorkerMan, optional connection pool (coroutine)
  • mix/redis PHP Redis that can be used in various environments, supports FPM, CLI, Swoole, WorkerMan, optional connection pool (coroutine)
  • mix/redis-subscriber Redis native protocol subscription library based on Swoole coroutine
  • mix/grpc PHP gRPC library based on Swoole coroutine, including protoc code generator, server, client
  • mix/websocket PHP WebSocket server and client based on Swoole coroutine
  • mix/cli PHP command line interactive commander
  • mix/worker-pool Swoole-based worker pool, coroutine pool
  • mix/validator PSR-7-based verification library
  • mix/event Event dispatcher based on PSR-14 standard
  • mix/init Help execute static initialization of the class, usually for preloading singletons

Server

Support multiple server drivers, and can switch seamlessly.

Documentation

Quick start

Provide ready-made scaffolding, quickly create projects, immediate output.

composer create-project --prefer-dist mix/cli-skeleton cli
composer create-project --prefer-dist mix/api-skeleton api
composer create-project --prefer-dist mix/web-skeleton web
composer create-project --prefer-dist mix/websocket-skeleton websocket
composer create-project --prefer-dist mix/grpc-skeleton grpc

Benchmarks

techempower-benchmark.png

web-frameworks-benchmark.png

Golang framework

OpenMix also has Golang ecological framework

License

Apache License Version 2.0, http://www.apache.org/licenses/