Getting Started
FriendsOfHyperf Components is a monorepo of independently installable packages for Hyperf 3.2. Use the full package when you want the complete toolkit, or install only the components your application needs.
Requirements
- PHP 8.2 or later
- Hyperf 3.2
- Swoole or Swow, according to your Hyperf application
Install All Components
shell
composer require friendsofhyperf/componentsThe aggregate package replaces every component package and registers their available ConfigProvider classes.
Install One Component
shell
composer require friendsofhyperf/cacheReplace cache with a package name from the component catalog. Most components register automatically through Hyperf's component discovery. When a component provides configuration, publish it with the command documented on that component's page.
Choose a Component
- Development and diagnostics: Telescope, Tinker, Web Tinker, IDE Helper
- Database and models: Model Factory, Model Observer, Compoships, Fast Paginate
- Infrastructure: Cache, Lock, Config Consul, Redis Subscriber
- Security and validation: Encryption, Purifier, reCAPTCHA, Validated DTO
- Communication: Mail, Notification, EasySms, AMQP Job, TCP Sender
See the component catalog for the complete categorized list.
Next Steps
- Open the component page and review its requirements.
- Install the individual package.
- Publish configuration when the component requires it.
- Add focused tests around the integration in your application.