friendsofhyperf / components
The most popular components for Hyperf.
Fund package maintenance!
huangdijia
hdj.me/sponsors
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 110
Watchers: 3
Forks: 26
Open Issues: 0
pkg:composer/friendsofhyperf/components
Requires
- php: >=8.2
- ext-openssl: *
- barryvdh/reflection-docblock: ^2.0
- composer/composer: ^2.0
- ezyang/htmlpurifier: ^4.17.0
- google/protobuf: ^3.21
- google/recaptcha: ^1.2
- guzzlehttp/uri-template: ^1.0
- hyperf/elasticsearch: ~3.2.0
- krowinski/php-mysql-replication: ^7.0 || ^8.0
- laravel/serializable-closure: ^1.0
- league/commonmark: ^1.3 || ^2.0.2
- nesbot/carbon: ^2.0 || ^3.0
- nunomaduro/termwind: ^1.13 || ^2.0
- openai-php/client: >=0.10.0
- phpmyadmin/sql-parser: ^5.9
- psr/http-factory-implementation: *
- psy/psysh: ^0.10.0 || ^0.11.0
- ramsey/uuid: ^4.7
- sentry/sentry: ^4.16.0
- symfony/console: ^6.0 || ^7.0
- symfony/http-foundation: ^6.0 || ^7.0
- symfony/polyfill-php84: ^1.33
- symfony/polyfill-php85: ^1.33
- symfony/process: ^6.0 || ^7.0
- symfony/uid: ^6.0 || ^7.0
- symfony/var-dumper: ^6.0 || ^7.0
Requires (Dev)
- aws/aws-sdk-php: ^3.235.5
- elasticsearch/elasticsearch: ^7.0 || ^8.0
- ergebnis/composer-normalize: ^2.43
- hashids/hashids: ^4.1 || ^5.0
- huangdijia/php-coding-standard: ^2.4
- hyperf/amqp: ~3.2.0
- hyperf/async-queue: ~3.2.0
- hyperf/cache: ~3.2.0
- hyperf/code-parser: ~3.2.0
- hyperf/codec: ~3.2.0
- hyperf/collection: ~3.2.0
- hyperf/command: ~3.2.0
- hyperf/conditionable: ~3.2.0
- hyperf/config-center: ~3.2.0
- hyperf/consul: ~3.2.0
- hyperf/context: ~3.2.0
- hyperf/coroutine: ~3.2.0
- hyperf/crontab: ~3.2.0
- hyperf/database: ~3.2.0
- hyperf/db: ~3.2.0
- hyperf/db-connection: ~3.2.0
- hyperf/devtool: ~3.2.0
- hyperf/di: ~3.2.0
- hyperf/engine: ^2.0
- hyperf/etcd: ~3.2.0
- hyperf/filesystem: ~3.2.0
- hyperf/framework: ~3.2.0
- hyperf/grpc-client: ~3.2.0
- hyperf/grpc-server: ~3.2.0
- hyperf/guzzle: ~3.2.0
- hyperf/http-server: ~3.2.0
- hyperf/http2-client: ~3.2.0
- hyperf/ide-helper: ~3.2.0
- hyperf/json-rpc: ~3.2.0
- hyperf/kafka: ~3.2.0
- hyperf/logger: ~3.2.0
- hyperf/macroable: ~3.2.0
- hyperf/nacos: ~3.2.0
- hyperf/paginator: ~3.2.0
- hyperf/pipeline: ~3.2.0
- hyperf/redis: ~3.2.0
- hyperf/rpc: ~3.2.0
- hyperf/rpc-client: ~3.2.0
- hyperf/rpc-server: ~3.2.0
- hyperf/scout: ~3.2.0
- hyperf/session: ~3.2.0
- hyperf/stdlib: ~3.2.0
- hyperf/stringable: ~3.2.0
- hyperf/support: ~3.2.0
- hyperf/tappable: ~3.2.0
- hyperf/tracer: ~3.2.0
- hyperf/validation: ~3.2.0
- hyperf/view: ~3.2.0
- hyperf/view-engine: ~3.2.0
- league/oauth2-server: ^9.2
- mockery/mockery: ^1.6
- opis/closure: ^3.6
- overtrue/easy-sms: ^3.0
- pestphp/pest: ^2.8.0
- pestphp/pest-plugin-faker: ^2.0
- pestphp/pest-plugin-type-coverage: ^2.0
- php-http/guzzle7-adapter: ^1.0
- phpstan/phpstan: ^1.0
- phpstan/phpstan-deprecation-rules: ^1.1
- swoole/ide-helper: dev-master
- swow/swow: dev-develop
- symfony/http-client: ^6.4
- symfony/mailgun-mailer: ^6.4
- symfony/notifier: ^6.4
- symfony/postmark-mailer: ^6.4
- tijsverkoyen/css-to-inline-styles: ^2.2.5
- voku/portable-ascii: ^1.4
Replaces
- friendsofhyperf/amqp-job: *
- friendsofhyperf/cache: *
- friendsofhyperf/co-phpunit: *
- friendsofhyperf/command-benchmark: *
- friendsofhyperf/command-signals: *
- friendsofhyperf/command-validation: *
- friendsofhyperf/compoships: *
- friendsofhyperf/confd: *
- friendsofhyperf/config-consul: *
- friendsofhyperf/console-spinner: *
- friendsofhyperf/di-plus: *
- friendsofhyperf/elasticsearch: *
- friendsofhyperf/encryption: *
- friendsofhyperf/exception-event: *
- friendsofhyperf/facade: *
- friendsofhyperf/fast-paginate: *
- friendsofhyperf/grpc-validation: *
- friendsofhyperf/helpers: *
- friendsofhyperf/http-client: *
- friendsofhyperf/http-logger: *
- friendsofhyperf/ide-helper: *
- friendsofhyperf/ipc-broadcaster: *
- friendsofhyperf/lock: *
- friendsofhyperf/macros: *
- friendsofhyperf/mail: *
- friendsofhyperf/middleware-plus: *
- friendsofhyperf/model-factory: *
- friendsofhyperf/model-hashids: *
- friendsofhyperf/model-morph-addon: *
- friendsofhyperf/model-observer: *
- friendsofhyperf/model-scope: *
- friendsofhyperf/monolog-hook: *
- friendsofhyperf/mysql-grammar-addon: *
- friendsofhyperf/notification: *
- friendsofhyperf/notification-easysms: *
- friendsofhyperf/notification-mail: *
- friendsofhyperf/oauth2-server: *
- friendsofhyperf/openai-client: *
- friendsofhyperf/pest-plugin-hyperf: *
- friendsofhyperf/pretty-console: *
- friendsofhyperf/purifier: *
- friendsofhyperf/recaptcha: *
- friendsofhyperf/redis-subscriber: *
- friendsofhyperf/sentry: *
- friendsofhyperf/support: *
- friendsofhyperf/tcp-sender: *
- friendsofhyperf/telescope: *
- friendsofhyperf/telescope-elasticsearch: *
- friendsofhyperf/tinker: *
- friendsofhyperf/trigger: *
- friendsofhyperf/validated-dto: *
- friendsofhyperf/web-tinker: *
- dev-main
- 3.2.x-dev
- v3.2.0-alpha.1
- v3.1.70.1
- v3.1.70
- v3.1.69
- v3.1.68
- v3.1.67
- v3.1.66
- v3.1.65
- v3.1.64
- v3.1.63
- v3.1.62
- v3.1.61
- v3.1.60
- v3.1.59
- v3.1.58
- v3.1.57
- v3.1.56
- v3.1.55.3
- v3.1.55.2
- v3.1.55.1
- v3.1.55
- v3.1.54
- v3.1.53
- v3.1.52.1
- v3.1.52
- v3.1.50.1
- v3.1.50
- v3.1.49
- v3.1.48
- v3.1.47
- v3.1.46.1
- v3.1.46
- v3.1.45
- v3.1.44
- v3.1.43
- v3.1.42
- v3.1.41
- v3.1.40
- v3.1.39
- v3.1.38
- v3.1.37
- v3.1.36
- v3.1.35
- v3.1.34
- v3.1.33
- v3.1.32
- v3.1.31
- v3.1.30
- v3.1.29.1
- v3.1.29
- v3.1.28.2
- v3.1.28.1
- v3.1.28
- v3.1.27
- v3.1.26
- v3.1.25
- v3.1.24
- v3.1.23
- v3.1.22
- v3.1.21
- v3.1.20
- v3.1.19
- v3.1.18
- v3.1.17
- v3.1.16
- v3.1.15
- v3.1.14
- v3.1.13
- v3.1.12
- v3.1.11
- v3.1.10
- v3.1.9
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.1.0-rc.23
- v3.1.0-rc.22
- v3.1.0-rc.21
- v3.1.0-rc.20
- v3.1.0-rc.19
- v3.1.0-rc.18
- v3.1.0-rc.17
- v3.1.0-rc.16
- v3.1.0-rc.15
- v3.1.0-rc.14
- v3.1.0-rc.13
- v3.1.0-rc.12
- v3.1.0-rc.11
- v3.1.0-rc.10
- v3.1.0-rc.9
- v3.1.0-rc.8
- v3.1.0-rc.7
- v3.1.0-rc.6
- v3.1.0-rc.5
- v3.1.0-rc.4
- v3.1.0-rc.3
- v3.1.0-rc.2
- v3.1.0-rc.1
- v3.1.0-beta.24
- v3.1.0-beta.23
- v3.1.0-beta.22
- v3.1.0-beta.21
- v3.1.0-beta.20
- v3.1.0-beta.19
- v3.1.0-beta.18
- v3.1.0-beta.17
- v3.1.0-beta.16
- v3.1.0-beta.15
- v3.1.0-beta.14
- v3.1.0-beta.13
- v3.1.0-beta.12
- v3.1.0-beta.11
- v3.1.0-beta.10
- v3.1.0-beta.9
- v3.1.0-beta.8
- v3.1.0-beta.7
- v3.1.0-beta.6
- v3.1.0-beta.5
- v3.1.0-beta.4
- v3.1.0-beta.3
- v3.1.0-beta.2
- v3.1.0-beta.1
- 3.0.x-dev
- v3.0.122
- v3.0.121
- v3.0.120
- v3.0.119
- v3.0.118
- v3.0.117
- v3.0.116
- v3.0.115
- v3.0.114
- v3.0.113
- v3.0.112
- v3.0.111
- v3.0.110
- v3.0.109
- v3.0.108
- v3.0.107
- v3.0.106
- v3.0.105
- v3.0.104
- v3.0.103
- v3.0.102
- v3.0.101
- v3.0.100
- v3.0.99
- v3.0.98
- v3.0.97
- v3.0.96
- v3.0.95
- v3.0.94
- v3.0.93
- v3.0.92
- v3.0.91
- v3.0.90
- v3.0.89
- v3.0.88
- v3.0.87
- v3.0.86
- v3.0.85
- v3.0.84
- v3.0.83
- v3.0.82
- v3.0.81
- v3.0.80
- v3.0.79
- v3.0.78
- v3.0.77
- v3.0.76
- v3.0.75
- v3.0.74
- v3.0.73
- v3.0.72
- v3.0.71
- v3.0.70
- v3.0.69
- v3.0.68
- v3.0.67
- v3.0.66
- v3.0.65
- v3.0.64
- v3.0.63
- v3.0.62
- v3.0.61
- v3.0.60
- v3.0.59
- v3.0.58
- v3.0.57
- v3.0.56
- v3.0.55
- v3.0.54
- v3.0.53
- v3.0.52
- v3.0.51
- v3.0.50
- v3.0.49
- v3.0.48
- v3.0.47
- v3.0.46
- v3.0.45
- v3.0.44
- v3.0.43
- v3.0.42
- v3.0.41
- v3.0.40
- v3.0.39
- v3.0.38
- v3.0.37
- v3.0.36
- v3.0.35
- v3.0.34
- v3.0.33
- v3.0.32
- v3.0.31
- v3.0.30
- v3.0.29
- v3.0.28
- v3.0.27
- v3.0.26
- v3.0.25
- v3.0.24
- v3.0.23
- v3.0.22
- v3.0.21
- v3.0.20
- v3.0.19
- v3.0.18
- v3.0.17
- v3.0.16
- v3.0.15
- v3.0.14
- v3.0.13
- v3.0.12
- v3.0.11
- v3.0.10
- v3.0.9
- v3.0.8
- v3.0.7
- v3.0.6
- v3.0.5
- v3.0.4
- v3.0.3
- v3.0.2
- v3.0.1
- v3.0.0
- v3.0.0-rc.49
- v3.0.0-rc.48
- v3.0.0-rc.47
- v3.0.0-rc.46
- v3.0.0-rc.45
- v3.0.0-rc.44
- v3.0.0-rc.43
- v3.0.0-rc.42
- v3.0.0-rc.41
- v3.0.0-rc.40
- v3.0.0-rc.39
- v3.0.0-rc.38
- v3.0.0-rc.37
- v3.0.0-rc.36
- v3.0.0-rc.35
- v3.0.0-rc.34
- v3.0.0-rc.33
- v3.0.0-rc.32
- v3.0.0-rc.31
- v3.0.0-rc.30
- v3.0.0-rc.29
- v3.0.0-rc.28
- v3.0.0-rc.27
- v3.0.0-rc.26
- v3.0.0-rc.25
- v3.0.0-rc.24
- v3.0.0-rc.23
- v3.0.0-rc.22
- v3.0.0-rc.21
- v3.0.0-rc.20
- v3.0.0-rc.19
- v3.0.0-rc.18
- v3.0.0-rc.17
- v3.0.0-rc.16
- v3.0.0-rc.15
- v3.0.0-rc.14
- v3.0.0-rc.13
- v3.0.0-rc.12
- v3.0.0-rc.11
- v3.0.0-rc.10
- v3.0.0-rc.9
- v3.0.0-rc.8
- v3.0.0-rc.7
- v3.0.0-rc.6
- v3.0.0-rc.5
- v3.0.0-rc.4
- v3.0.0-rc.3
- v3.0.0-rc.2
- v3.0.0-rc.1
- v3.0.0-beta42
- v3.0.0-beta41
- v3.0.0-beta40
- v3.0.0-beta39
- v3.0.0-beta38
- v3.0.0-beta37
- v3.0.0-beta36
- v3.0.0-beta35
- v3.0.0-beta34
- v3.0.0-beta33
- v3.0.0-beta32
- v3.0.0-beta31
- v3.0.0-beta30
- v3.0.0-beta29
- v3.0.0-beta28
- v3.0.0-beta27
- v3.0.0-beta26
- v3.0.0-beta25
- v3.0.0-beta24
- v3.0.0-beta23
- v3.0.0-beta22
- v3.0.0-beta21
- v3.0.0-beta20
- v3.0.0-beta19
- v3.0.0-beta18
- v3.0.0-beta17
- v3.0.0-beta16
- v3.0.0-beta15
- v3.0.0-beta14
- v3.0.0-beta13
- v3.0.0-beta12
- v3.0.0-beta11
- v3.0.0-beta10
- v3.0.0-beta9
- v3.0.0-beta8
- v3.0.0-beta7
- v3.0.0-beta6
- v3.0.0-beta5
- v3.0.0-beta4
- v3.0.0-beta3
- v3.0.0-beta2
- v3.0.0-beta1
- 2.0.x-dev
- v2.0.28
- v2.0.27
- v2.0.26
- v2.0.25
- v2.0.24
- v2.0.23
- v2.0.22
- v2.0.21
- v2.0.20
- v2.0.19
- v2.0.18
- v2.0.17
- v2.0.16
- v2.0.15
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v2.0.0-beta3
- v2.0.0-beta2
- v2.0.0-beta1
- dev-huangdijia-patch-1
- dev-patch-str
This package is auto-updated.
Last update: 2025-11-04 16:06:48 UTC
README
๐ The most popular and comprehensive collection of high-quality components for the Hyperf framework, providing 50+ production-ready packages to accelerate your application development.
๐ About
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.
โจ Features
- ๐ฏ 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
๐ Requirements
- PHP >= 8.1
- Hyperf >= 3.1.0
- Swoole or Swow extension
๐พ Installation
Install All Components
composer require friendsofhyperf/components
Install Individual Components
You 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 --dev
๐ฏ Quick Start
After 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]
๐ฆ Available Components
๐ง Development & Debugging Tools
- 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
๐พ Database & Models
- 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
๐๏ธ Caching & Storage
- cache - Advanced caching with multiple drivers
- lock - Distributed locking mechanisms
- redis-subscriber - Redis pub/sub subscriber
๐ HTTP & API
- http-client - Elegant HTTP client (Laravel-style)
- http-logger - HTTP request/response logging
- oauth2-server - OAuth2 server implementation
๐จ Notifications & Communication
- notification - Multi-channel notifications
- notification-mail - Email notification channel
- notification-easysms - SMS notification via EasySMS
- mail - Email sending component
- tcp-sender - TCP message sender
๐ Search & Data
- elasticsearch - Elasticsearch client integration
- telescope-elasticsearch - Elasticsearch storage for Telescope
โ๏ธ Configuration & Infrastructure
- confd - Configuration management with confd
- config-consul - Consul configuration center
๐ ๏ธ Command & Console
- command-signals - Signal handling for commands
- command-validation - Command input validation
- command-benchmark - Command performance benchmarking
- console-spinner - Console loading spinners
๐งฉ Dependency Injection & Architecture
- di-plus - Enhanced dependency injection features
- facade - Laravel-style facades for Hyperf
- middleware-plus - Enhanced middleware features
- ipc-broadcaster - Inter-process communication broadcaster
๐ Security & Validation
- 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
๐จ Utilities & Helpers
- helpers - Useful helper functions
- support - Support utilities and classes
- macros - Macro support for various classes
๐ Monitoring & Logging
- sentry - Sentry error tracking integration
- monolog-hook - Monolog hooks and processors
๐ Queue & Jobs
- amqp-job - AMQP-based job queue
๐งช Testing
- pest-plugin-hyperf - Pest testing framework integration
- co-phpunit - Coroutine-compatible PHPUnit
๐ค AI & External Services
- openai-client - OpenAI API client
๐ Others
- exception-event - Exception event handling
๐ Documentation
For detailed documentation, visit the official documentation website.
Documentation by Language
- ็ฎไฝไธญๆ (Simplified Chinese)
- ็น้ซไธญๆ (Traditional Chinese)
- ้ฆๆธฏ็น้ซ (Hong Kong Traditional)
- English
๐จ Development
Clone the Repository
git clone https://github.com/friendsofhyperf/components.git
cd components
Install Dependencies
composer install
Running Tests
# 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
Code Quality
# Fix code style composer cs-fix # Run static analysis composer analyse
๐ค Contributing
We welcome contributions from the community! Please read our Contributing Guidelines before submitting pull requests.
Development Workflow
- 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
๐ Support & Community
- ๐ Documentation: hyperf.fans
- ๐ฌ Issues: GitHub Issues
- ๐ฆ Twitter: @huangdijia
- ๐ง Email: huangdijia@gmail.com
๐ Mirrors
๐ฅ Contributors
We are grateful to all the contributors who have helped make this project better!
๐ License
This project is open-sourced software licensed under the MIT License.
Made with โค๏ธ by Deeka Wong and contributors