talira

A high-performance coroutine PHP framework for services and microservices

open sourceMITfree

Hyperf is a high-performance, flexible PHP framework that runs as a long-lived CLI process on a coroutine server (Swoole or Swow) instead of PHP-FPM. It's built on coroutines, dependency injection, events, annotations and AOP, with coroutine clients for MySQL, Redis and more, and provides middleware, an event manager, a coroutine-optimized Eloquent ORM with model caching, translation, validation, views and other components. Its makers aim it at web and gateway servers, microservices, distributed middleware, game servers and IoT. It needs PHP 8.1 or later.

Problems it solves

  • build high-performance PHP microservices
  • run PHP as a long-lived coroutine server instead of PHP-FPM
  • a Swoole-based PHP framework with dependency injection

Features

  • coroutine server on Swoole or Swow
  • dependency injection, events, annotations and AOP
  • coroutine MySQL and Redis clients
  • coroutine-optimized Eloquent ORM
  • microservices components

Alternatives

The same job

These do what Hyperf does.

  1. Swoole Coroutine-based concurrency library for PHP
  2. Nette Framework Component-based PHP framework and standalone libraries with security built in

Compare Hyperf with the top 3