๐ The most popular and comprehensive collection of high-quality components for the Hyperf framework, providing 50+ production-ready packages to accelerate your application development.
This repository is a monorepo containing a collection of battle-tested, community-driven components that extend the Hyperf framework with additional features and integrations. Each component is independently usable and can be installed separately or as a complete suite.
- ๐ฏ 50+ Components - Comprehensive collection covering various development needs
- ๐ Easy Integration - Seamless integration with Hyperf 3.1+
- ๐ฆ Modular Design - Install only what you need
- ๐ก๏ธ Production Ready - Battle-tested in production environments
- ๐ Well Documented - Comprehensive documentation in multiple languages
- ๐งช Fully Tested - High test coverage with PHPUnit and Pest
- ๐ Multi-language - Documentation available in Chinese (Simplified, Traditional, HK) and English
- PHP >= 8.1
- Hyperf >= 3.1.0
- Swoole or Swow extension
composer require friendsofhyperf/componentsYou can install specific components as needed:
# Example: Install Telescope (Debug Assistant)
composer require friendsofhyperf/telescope
# Example: Install HTTP Client
composer require friendsofhyperf/http-client
# Example: Install Model Factory
composer require friendsofhyperf/model-factory --devAfter installing a component, most packages will automatically register with Hyperf through the ConfigProvider. Some components may require publishing configuration files:
php bin/hyperf.php vendor:publish friendsofhyperf/[component-name]- telescope - Elegant debug assistant for Hyperf (requests, exceptions, SQL, Redis, etc.)
- tinker - Powerful REPL for interactive debugging
- web-tinker - Web-based Tinker interface
- ide-helper - Enhanced IDE support and autocompletion
- pretty-console - Beautiful console output formatting
- model-factory - Database model factories for testing
- model-observer - Eloquent model observers
- model-scope - Global and local query scopes
- model-hashids - Hashids integration for models
- model-morph-addon - Polymorphic relationship enhancements
- compoships - Multi-column relationships for Eloquent
- fast-paginate - High-performance pagination
- mysql-grammar-addon - MySQL grammar extensions
- trigger - MySQL trigger support
- cache - Advanced caching with multiple drivers
- lock - Distributed locking mechanisms
- redis-subscriber - Redis pub/sub subscriber
- http-client - Elegant HTTP client (Laravel-style)
- oauth2-server - OAuth2 server implementation
- notification - Multi-channel notifications
- notification-mail - Email notification channel
- notification-easysms - SMS notification via EasySMS
- mail - Email sending component
- tcp-sender - TCP message sender
- elasticsearch - Elasticsearch client integration
- telescope-elasticsearch - Elasticsearch storage for Telescope
- confd - Configuration management with confd
- config-consul - Consul configuration center
- command-signals - Signal handling for commands
- command-validation - Command input validation
- command-benchmark - Command performance benchmarking
- console-spinner - Console loading spinners
- facade - Laravel-style facades for Hyperf
- ipc-broadcaster - Inter-process communication broadcaster
- encryption - Data encryption and decryption
- purifier - HTML purification (XSS protection)
- recaptcha - Google reCAPTCHA integration
- validated-dto - Data Transfer Objects with validation
- grpc-validation - gRPC request validation
- helpers - Useful helper functions
- support - Support utilities and classes
- macros - Macro support for various classes
- sentry - Sentry error tracking integration
- amqp-job - AMQP-based job queue
- co-phpunit - Coroutine-compatible PHPUnit
- openai-client - OpenAI API client
- exception-event - Exception event handling
For detailed documentation, visit the official documentation website.
- ็ฎไฝไธญๆ (Simplified Chinese)
- ็น้ซไธญๆ (Traditional Chinese)
- ้ฆๆธฏ็น้ซ (Hong Kong Traditional)
- English
git clone https://github.com/friendsofhyperf/components.git
cd componentscomposer install# Run all tests
composer test
# Run specific test suites
composer test:unit # Unit tests
composer test:lint # Code style checks
composer test:types # Type coverage analysis# Fix code style
composer cs-fix
# Run static analysis
composer analyseWe welcome contributions from the community! Please read our Contributing Guidelines before submitting pull requests.
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run tests and code quality checks
- Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- ๐ Documentation: docs.hdj.me
- ๐ฌ Issues: GitHub Issues
- ๐ฆ Twitter: @huangdijia
- ๐ง Email: [email protected]
We are grateful to all the contributors who have helped make this project better!
This project is open-sourced software licensed under the MIT License.
Made with โค๏ธ by Deeka Wong and contributors