phphive / cli
A powerful, production-ready CLI tool for managing PHP monorepos with Turborepo integration
Installs: 17
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 1
pkg:composer/phphive/cli
Requires
- php: ^8.4
- illuminate/container: ^12.0
- illuminate/support: ^12.0
- laravel/prompts: ^0.3
- symfony/console: ^7.0|^8.0
- symfony/finder: ^7.0|^8.0
- symfony/process: ^7.0|^8.0
Requires (Dev)
- infection/infection: ^0.32
- laravel/pint: ^1.18
- mockery/mockery: ^1.6
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^11.5
- rector/rector: ^2.0
- dev-main
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.11
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dependabot/github_actions/github-actions-0924709c20
- dev-dependabot/composer/development-dependencies-1f2719989a
- dev-dependabot/composer/development-dependencies-3ac12bfd80
- dev-dependabot/composer/development-dependencies-3dc7f77586
This package is auto-updated.
Last update: 2026-02-12 13:59:52 UTC
README
PhpHive CLI
🐝 PHP Monorepo Management powered by Turborepo
Features • Installation • Quick Start • Documentation • Commands
🎯 What is PhpHive?
PhpHive is a powerful, production-ready CLI tool for managing PHP monorepos with Turborepo integration. It provides a unified interface for scaffolding applications, managing dependencies, running quality tools, and orchestrating tasks across multiple packages.
Why PhpHive?
- 🚀 Multi-Framework Support - Scaffold Laravel, Symfony, Magento, or skeleton apps with one command
- ⚡ Turbo Speed - Parallel execution and intelligent caching via Turborepo
- 🎯 Quality Built-in - PHPStan, Pint, Rector, PHPUnit, and Infection pre-configured
- 🐝 Hive Workflow - All your PHP projects working together like bees in a hive
- 💎 Beautiful CLI - Interactive prompts powered by Laravel Prompts
- 🔧 Zero Config - Sensible defaults, works out of the box
✨ Features
Core Features
- Workspace Management - Initialize and manage monorepo workspaces
- App Scaffolding - Create Laravel, Symfony, Magento, or skeleton apps
- Package Creation - Generate reusable packages with proper structure
- Dependency Management - Unified Composer operations across workspaces
- Task Orchestration - Run tasks in parallel with Turborepo
Quality & Testing
- PHPUnit - Comprehensive test suite with 58+ tests
- PHPStan - Static analysis at level 8
- Laravel Pint - Automatic code formatting
- Rector - Automated refactoring for PHP 8.3+
- Infection - Mutation testing for test quality
Developer Experience
- Auto-discovery - Commands are automatically discovered
- Interactive Prompts - Beautiful CLI powered by Laravel Prompts
- Command Suggestions - "Did you mean?" with fuzzy matching
- Comprehensive Help - Detailed help text for every command
- Error Handling - Clear, actionable error messages
📦 Installation
Requirements
- PHP: 8.3 or higher
- Composer: 2.0 or higher
- Extensions: mbstring, json, tokenizer, xml, ctype, iconv
Global Installation (Recommended)
composer global require phphive/cli
Local Installation
composer require --dev phphive/cli
Verify Installation
hive version
⚡ Quick Start
1. Initialize a New Workspace
hive make:workspace
Follow the interactive prompts to create your monorepo structure.
2. Create an Application
# Laravel application hive make:app my-api --type=laravel # Symfony application hive make:app my-service --type=symfony # Magento store hive make:app my-shop --type=magento
3. Create a Package
hive make:package my-package
4. Install Dependencies
hive composer:install
5. Run Quality Checks
# Run tests hive quality:test # Check code style hive quality:lint # Run static analysis hive quality:typecheck # Run all checks cd cli && composer check
📚 Documentation
Comprehensive documentation is available in the docs directory:
- Getting Started - Installation, configuration, and first steps
- Commands Reference - Complete command documentation
- Features Guide - In-depth feature explanations
- Guides & Tutorials - Step-by-step tutorials
- API Reference - Programmatic usage
🎮 Commands
PhpHive provides 30+ commands organized into 10 categories:
Workspace Management
hive make:workspace- Initialize a new monorepo workspacehive workspace:list- List all workspaceshive workspace:info- Show workspace details
Application Scaffolding
hive make:app- Create a new application (Laravel/Symfony/Magento/Skeleton)hive make:package- Create a new package
Dependency Management
hive composer:install- Install dependencieshive composer:require- Add a packagehive composer:update- Update dependencieshive composer:run- Run Composer commands
Quality & Testing
hive quality:test- Run PHPUnit testshive quality:lint- Check code style with Pinthive quality:format- Fix code stylehive quality:typecheck- Run PHPStan analysishive quality:refactor- Apply Rector refactoringhive quality:mutate- Run Infection mutation testing
Framework Commands
hive framework:artisan- Run Laravel Artisanhive framework:console- Run Symfony Consolehive framework:magento- Run Magento CLI
Development
hive dev:start- Start development serverhive dev:build- Build for production
Deployment
hive deploy:run- Run deployment pipelinehive deploy:publish- Publish packages
Maintenance
hive clean:cache- Clean cacheshive clean:all- Deep clean (destructive)
Turborepo
hive turbo:run- Run Turbo taskshive turbo:exec- Execute Turbo commands
System
hive system:doctor- Check system healthhive system:version- Show version information
View complete command reference →
🏗️ Project Structure
monorepo/
├── apps/ # Applications
│ ├── api/ # Laravel API
│ ├── admin/ # Admin dashboard
│ └── shop/ # Magento store
├── packages/ # Shared packages
│ ├── calculator/ # Example package
│ └── utilities/ # Shared utilities
├── cli/ # PhpHive CLI tool
│ ├── bin/hive # CLI entry point
│ ├── src/ # Source code
│ ├── tests/ # Test suite
│ └── docs/ # Documentation
├── composer.json # Root composer file
├── turbo.json # Turborepo config
└── pnpm-workspace.yaml # Workspace config
🤝 Contributing
We welcome contributions! Please see CONTRIBUTING.md for details.
Quick Contribution Guide
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Make your changes
- Run quality checks (
composer check) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
📄 License
PhpHive CLI is open-sourced software licensed under the MIT license.
🙏 Credits
Built with:
- Symfony Console - Command-line interface framework
- Laravel Prompts - Beautiful interactive prompts
- Laravel Pint - Code style fixer
- PHPStan - Static analysis tool
- Rector - Automated refactoring
- PHPUnit - Testing framework
- Infection - Mutation testing
- Turborepo - High-performance build system
📞 Support
- Documentation: GitHub Docs
- Issues: GitHub Issues
- Packagist: phphive/cli
Made with ❤️ by the PhpHive team