logo
0
8
Login
Deeka Wong<8337659+huangdijia@users.noreply.github.com>
refactor: 移除 Monolog Hook 组件及相关文档

FriendsOfHyperf Components

Latest Test Latest Stable Version License PHP Version Require Hyperf Version Require Ask DeepWiki

中文说明

🚀 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

🗄️ Caching & Storage

  • cache - Advanced caching with multiple drivers
  • lock - Distributed locking mechanisms
  • redis-subscriber - Redis pub/sub subscriber

🌐 HTTP & API

📨 Notifications & Communication

🔍 Search & Data

⚙️ Configuration & Infrastructure

🛠️ Command & Console

🧩 Dependency Injection & Architecture

🔐 Security & 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

🚀 Queue & Jobs

🧪 Testing

🤖 AI & External Services

📝 Others

📚 Documentation

For detailed documentation, visit the official documentation website.

Documentation by Language

🔨 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

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Run tests and code quality checks
  5. Commit your changes (git commit -m 'Add amazing feature')
  6. Push to the branch (git push origin feature/amazing-feature)
  7. Open a Pull Request

🌟 Support & Community

🔗 Mirrors

👥 Contributors

We are grateful to all the contributors who have helped make this project better!

Contributors

📄 License

This project is open-sourced software licensed under the MIT License.


Made with ❤️ by Deeka Wong and contributors