PHPackages                             phphive/cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. phphive/cli

ActiveLibrary[CLI &amp; Console](/categories/cli)

phphive/cli
===========

A powerful, production-ready CLI tool for managing PHP monorepos with Turborepo integration

v1.0.21(3mo ago)0171[3 PRs](https://github.com/pixielity-co/phphive-cli/pulls)MITPHPPHP ^8.4CI passing

Since Feb 11Pushed 1mo agoCompare

[ Source](https://github.com/pixielity-co/phphive-cli)[ Packagist](https://packagist.org/packages/phphive/cli)[ Docs](https://github.com/pixielity-inc/phphive-cli)[ RSS](/packages/phphive-cli/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (29)Versions (29)Used By (0)

[![PhpHive Banner](.github/assets/banner.svg)](.github/assets/banner.svg)

PhpHive CLI
===========

[](#phphive-cli)

**🐝 PHP Monorepo Management powered by Turborepo**

[![PHP Version](https://camo.githubusercontent.com/51482859d8bb7cd31d259f58cf02b8eb7e56c51ad36c462afa3484f3b7a8fc2c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e342532422d3737374242343f7374796c653d666c61742d737175617265266c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://www.php.net/)[![Packagist Version](https://camo.githubusercontent.com/ac46ba8f481e90240ddf6258707dc0e050ee3b6ae47baac8d796fd3a535fe28d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706870686976652f636c693f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/phphive/cli)[![Downloads](https://camo.githubusercontent.com/3f0e11ce6cefbec6960278cac65dbe2519873285bfa2e520b782cc9c60242e41/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706870686976652f636c693f7374796c653d666c61742d737175617265266c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465266c6162656c3d646f776e6c6f616473)](https://packagist.org/packages/phphive/cli)[![License](https://camo.githubusercontent.com/152aa2a37725b9fd554b28ff24d270f6071c67927a63e6d635a55c8e188e20c7/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e3f7374796c653d666c61742d737175617265)](LICENSE)[![CI Status](https://camo.githubusercontent.com/64710c1d6d12771f81d809f12d20dd2ef736763b12d5d0c9bcbf3eeccde7fc77/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f70697869656c6974792d696e632f706870686976652d636c692f63692e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265266c6f676f3d676974687562266c6162656c3d4349)](https://github.com/pixielity-inc/phphive-cli/actions)[![Tests](https://camo.githubusercontent.com/b9989a83373173a425d35443c4d79f4f535ec8f603205711668a041aba421876/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d353825323070617373696e672d737563636573733f7374796c653d666c61742d737175617265266c6f676f3d706870756e6974266c6f676f436f6c6f723d7768697465)](https://github.com/pixielity-inc/phphive-cli/actions)

[Features](#-features) • [Installation](#-installation) • [Quick Start](#-quick-start) • [Documentation](#-documentation) • [Commands](#-commands)

---

🎯 What is PhpHive?
------------------

[](#-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?

[](#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
----------

[](#-features)

### Core 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 &amp; Testing

[](#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

[](#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
--------------

[](#-installation)

### Requirements

[](#requirements)

- **PHP**: 8.3 or higher
- **Composer**: 2.0 or higher
- **Extensions**: mbstring, json, tokenizer, xml, ctype, iconv

### Global Installation (Recommended)

[](#global-installation-recommended)

```
composer global require phphive/cli
```

### Local Installation

[](#local-installation)

```
composer require --dev phphive/cli
```

### Verify Installation

[](#verify-installation)

```
hive version
```

---

⚡ Quick Start
-------------

[](#-quick-start)

### 1. Initialize a New Workspace

[](#1-initialize-a-new-workspace)

```
hive make:workspace
```

Follow the interactive prompts to create your monorepo structure.

### 2. Create an Application

[](#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

[](#3-create-a-package)

```
hive make:package my-package
```

### 4. Install Dependencies

[](#4-install-dependencies)

```
hive composer:install
```

### 5. Run Quality Checks

[](#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
---------------

[](#-documentation)

Comprehensive documentation is available in the [docs](./docs) directory:

- **[Getting Started](./docs/getting-started/README.md)** - Installation, configuration, and first steps
- **[Commands Reference](./docs/commands/README.md)** - Complete command documentation
- **[Features Guide](./docs/features/README.md)** - In-depth feature explanations
- **[Guides &amp; Tutorials](./docs/guides/README.md)** - Step-by-step tutorials
- **[API Reference](./docs/api/README.md)** - Programmatic usage

---

🎮 Commands
----------

[](#-commands)

PhpHive provides 30+ commands organized into 10 categories:

### Workspace Management

[](#workspace-management)

- `hive make:workspace` - Initialize a new monorepo workspace
- `hive workspace:list` - List all workspaces
- `hive workspace:info` - Show workspace details

### Application Scaffolding

[](#application-scaffolding)

- `hive make:app` - Create a new application (Laravel/Symfony/Magento/Skeleton)
- `hive make:package` - Create a new package

### Dependency Management

[](#dependency-management)

- `hive composer:install` - Install dependencies
- `hive composer:require` - Add a package
- `hive composer:update` - Update dependencies
- `hive composer:run` - Run Composer commands

### Quality &amp; Testing

[](#quality--testing-1)

- `hive quality:test` - Run PHPUnit tests
- `hive quality:lint` - Check code style with Pint
- `hive quality:format` - Fix code style
- `hive quality:typecheck` - Run PHPStan analysis
- `hive quality:refactor` - Apply Rector refactoring
- `hive quality:mutate` - Run Infection mutation testing

### Framework Commands

[](#framework-commands)

- `hive framework:artisan` - Run Laravel Artisan
- `hive framework:console` - Run Symfony Console
- `hive framework:magento` - Run Magento CLI

### Development

[](#development)

- `hive dev:start` - Start development server
- `hive dev:build` - Build for production

### Deployment

[](#deployment)

- `hive deploy:run` - Run deployment pipeline
- `hive deploy:publish` - Publish packages

### Maintenance

[](#maintenance)

- `hive clean:cache` - Clean caches
- `hive clean:all` - Deep clean (destructive)

### Turborepo

[](#turborepo)

- `hive turbo:run` - Run Turbo tasks
- `hive turbo:exec` - Execute Turbo commands

### System

[](#system)

- `hive system:doctor` - Check system health
- `hive system:version` - Show version information

[View complete command reference →](./docs/commands/README.md)

---

🏗️ Project Structure
--------------------

[](#️-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
--------------

[](#-contributing)

We welcome contributions! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for details.

### Quick Contribution Guide

[](#quick-contribution-guide)

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

---

📄 License
---------

[](#-license)

PhpHive CLI is open-sourced software licensed under the [MIT license](LICENSE).

---

🙏 Credits
---------

[](#-credits)

Built with:

- [Symfony Console](https://symfony.com/doc/current/components/console.html) - Command-line interface framework
- [Laravel Prompts](https://laravel.com/docs/prompts) - Beautiful interactive prompts
- [Laravel Pint](https://laravel.com/docs/pint) - Code style fixer
- [PHPStan](https://phpstan.org/) - Static analysis tool
- [Rector](https://getrector.com/) - Automated refactoring
- [PHPUnit](https://phpunit.de/) - Testing framework
- [Infection](https://infection.github.io/) - Mutation testing
- [Turborepo](https://turbo.build/) - High-performance build system

---

📞 Support
---------

[](#-support)

- **Documentation**: [GitHub Docs](./docs)
- **Issues**: [GitHub Issues](https://github.com/pixielity-inc/phphive-cli/issues)
- **Packagist**: [phphive/cli](https://packagist.org/packages/phphive/cli)

---

**[⬆ back to top](#phphive-cli)**

Made with ❤️ by the PhpHive team

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance86

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 91.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

22

Last Release

94d ago

PHP version history (2 changes)v1.0.0PHP ^8.3

v1.0.4PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/097bcf744614fce2b94aae3463aaa5d875496df7dcf0c1a825f83f88a62bf618?d=identicon)[pixielity](/maintainers/pixielity)

---

Top Contributors

[![abdokouta](https://avatars.githubusercontent.com/u/12934929?v=4)](https://github.com/abdokouta "abdokouta (167 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (16 commits)")

---

Tags

phpcomposerclideveloper-toolsworkspacemonorepobuild-toolturborepo

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/phphive-cli/health.svg)

```
[![Health](https://phpackages.com/badges/phphive-cli/health.svg)](https://phpackages.com/packages/phphive-cli)
```

###  Alternatives

[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[seregazhuk/php-watcher

Automatically restart PHP application once the source code changes

394137.8k4](/packages/seregazhuk-php-watcher)[statamic/cli

Statamic CLI Tool

7587.7k](/packages/statamic-cli)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
