Components
Every component can be installed independently with composer require friendsofhyperf/<component>. Install friendsofhyperf/components only when you need the complete collection.
Development and Diagnostics
- Telescope: inspect requests, exceptions, queries, Redis commands, and more.
- Tinker: run an interactive REPL in a Hyperf application.
- Web Tinker: expose Tinker through a browser interface.
- IDE Helper: generate IDE metadata for application classes.
- Pretty Console: format command-line output.
- Command Benchmark: measure command execution.
Database and Models
- Model Factory: create model factories for tests and seed data.
- Model Observer: register model observers.
- Model Scope: define reusable model query scopes.
- Model Hashids: expose encoded model identifiers.
- Model Morph Addon: extend polymorphic model relations.
- Compoships: define relationships using multiple columns.
- Fast Paginate: optimize pagination for large data sets.
- MySQL Grammar Addon: extend the MySQL query grammar.
- Trigger: consume MySQL binlog events.
Cache and Coordination
- Cache: use an expressive cache API.
- Lock: coordinate work with distributed locks.
- Redis Subscriber: consume Redis Pub/Sub messages.
HTTP and External Services
- HTTP Client: use a convenient HTTP client.
- OAuth2 Server: build an OAuth 2.0 authorization server.
- OpenAI Client: integrate the OpenAI PHP client.
- Elasticsearch: configure the Elasticsearch client.
- reCAPTCHA: verify Google reCAPTCHA responses.
Messaging and Notifications
- AMQP Job: dispatch AMQP messages as jobs.
- Mail: send mail with Symfony Mailer.
- Notification: deliver notifications through multiple channels.
- Notification Mail: deliver notifications by email.
- Notification EasySms: deliver notifications by SMS.
- TCP Sender: send messages to TCP services.
Configuration and Infrastructure
- Confd: manage configuration with confd.
- Config Consul: load configuration from Consul.
- IPC Broadcaster: broadcast messages between worker processes.
- Telescope Elasticsearch: store Telescope entries in Elasticsearch.
Security and Validation
- Encryption: encrypt and decrypt application data.
- Purifier: sanitize HTML input.
- Validated DTO: validate and hydrate data transfer objects.
- Command Validation: validate console command input.
- gRPC Validation: validate gRPC requests.
- Rate Limit: apply configurable rate-limiting algorithms.
Framework Extensions
- Facade: define Laravel-style facades.
- Macros: add macros to framework classes.
- Helpers: use additional helper functions.
- Support: use shared utilities, fluent dispatch, and backoff strategies.
- Exception Event: dispatch events for exceptions.
Commands and Runtime
- Command Signals: handle process signals in commands.
- Console Spinner: display progress spinners.
- Co-PHPUnit: run PHPUnit tests in coroutines.