PHPackages                             oihana/php-commands - 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. oihana/php-commands

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

oihana/php-commands
===================

The Oihana PHP Commands library

1.0.4(1w ago)05825MPL-2.0PHPPHP &gt;=8.4CI passing

Since Aug 12Pushed 1mo agoCompare

[ Source](https://github.com/BcommeBois/oihana-php-commands)[ Packagist](https://packagist.org/packages/oihana/php-commands)[ Docs](https://github.com/BcommeBois/oihana-php-commands)[ RSS](/packages/oihana-php-commands/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (32)Versions (6)Used By (5)

Oihana PHP Commands
===================

[](#oihana-php-commands)

[![Oihana PHP Commands](https://raw.githubusercontent.com/BcommeBois/oihana-php-commands/main/assets/images/oihana-php-commands-logo-inline-512x160.png)](https://raw.githubusercontent.com/BcommeBois/oihana-php-commands/main/assets/images/oihana-php-commands-logo-inline-512x160.png)

Build robust, scriptable command-line tooling for servers and web applications. Part of the **Oihana PHP** ecosystem, this package gives you a consistent foundation to automate day‑to‑day operations with confidence.

[![Latest Version](https://camo.githubusercontent.com/2c8eb88a7ec952b637a522983d1a81b8ee169d3b1d4c3154be9b7524ec87fa3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f6968616e612f7068702d636f6d6d616e64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oihana/php-commands)[![Total Downloads](https://camo.githubusercontent.com/c437d7e93c79b54d2eab144e3e7f322069e935ce8679e510b5d22c389332dffe/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f6968616e612f7068702d636f6d6d616e64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/oihana/php-commands)[![License](https://camo.githubusercontent.com/9ca92703f0afa5423ad1737b517b6c06ff10e15a9cec5753f66a1a4f97bed12e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f6968616e612f7068702d636f6d6d616e64732e7376673f7374796c653d666c61742d737175617265)](LICENSE)

📚 Documentation
---------------

[](#-documentation)

Full documentation: `https://bcommebois.github.io/oihana-php-commands`

📦 Installation
--------------

[](#-installation)

Requires [PHP 8.4+](https://php.net/releases/). Install via [Composer](https://getcomposer.org/):

```
composer require oihana/php-commands
```

✨ What you can do
-----------------

[](#-what-you-can-do)

- Manage MySQL databases: create users, grant privileges, back up and restore data.
- Automate backups: schedule and execute incremental or full backups for databases and apps.
- Install and update applications: deploy, upgrade, and maintain projects reliably.
- Control caches: clear and manage systems like Memcached and Redis.
- Handle SSL certificates: automate issuance and renewal with Let’s Encrypt/Certbot.
- Configure NGINX: generate modular server configs and reload services.

### Under the hood

[](#under-the-hood)

- First‑class integration with Symfony Console for building custom CLI commands.
- Ready‑made plugins for databases, caches, web servers, certificates, and more.
- A flexible options system based on the [PSR‑11 Container](https://www.php-fig.org/psr/psr-11/).
- An extensible architecture to add your own tasks, workflows, and plugins.

Ideal for DevOps automation, hosting management, CI/CD pipelines, and local or production environment setup.

🔌 Plugins
---------

[](#-plugins)

Each plugin extends the CLI with focused, production‑ready capabilities.

🔌PluginDescription🔏[Oihana PHP Certbot](https://github.com/BcommeBois/oihana-php-certbot)Create, modify and manage Let’s Encrypt certificates via Certbot.🧠[Oihana PHP Memcached](https://github.com/BcommeBois/oihana-php-memcached)Manage Memcached in‑memory key‑value caching.🌐[Oihana PHP Nginx](https://github.com/BcommeBois/oihana-php-nginx)Create, modify and control NGINX configurations and commands.🤖[Oihana PHP Robots](https://github.com/BcommeBois/oihana-php-robots)Create or remove a robots.txt file from the CLI.---

### 🔏 Certbot

[](#-certbot)

[ ![Oihana PHP Certbot](https://raw.githubusercontent.com/BcommeBois/oihana-php-certbot/main/assets/images/oihana-php-certbot-logo-inline-512x160.png) ](https://github.com/BcommeBois/oihana-php-certbot)Toolkit to create, modify and manage [Let’s Encrypt](https://letsencrypt.org/) certificates via the [Certbot](https://certbot.eff.org/) CLI.

🔗 View the repository: `https://github.com/BcommeBois/oihana-php-certbot`

---

### 🧠 Memcached

[](#-memcached)

[ ![Oihana PHP Memcached](https://raw.githubusercontent.com/BcommeBois/oihana-php-memcached/main/assets/images/oihana-php-memcached-logo-inline-512x160.png) ](https://github.com/BcommeBois/oihana-php-memcached)CLI to control Memcached using the official [Memcached](https://www.php.net/manual/en/book.memcached.php) PHP extension.

🔗 View the repository: `https://github.com/BcommeBois/oihana-php-memcached`

---

### 🌐 Nginx

[](#-nginx)

[ ![Oihana PHP Nginx](https://raw.githubusercontent.com/BcommeBois/oihana-php-nginx/main/assets/images/oihana-php-nginx-logo-inline-512x160.png) ](https://github.com/BcommeBois/oihana-php-nginx)Simple CLI to manage NGINX and create/remove configuration files on your server.

🔗 View the repository: `https://github.com/BcommeBois/oihana-php-nginx`

---

### 🤖 Robots

[](#-robots)

[ ![Oihana PHP Robots](https://raw.githubusercontent.com/BcommeBois/oihana-php-robots/main/assets/images/oihana-php-robots-logo-inline-512x160.png) ](https://github.com/BcommeBois/oihana-php-robots)CLI to create or remove a website’s `robots.txt` file.

🔗 View the repository: `https://github.com/BcommeBois/oihana-php-robots`

✅ Running tests
---------------

[](#-running-tests)

Run all tests:

```
composer test
```

Run a specific test file:

```
composer test ./tests/oihana/commands/ProcessTest.php
```

🛠️ Generate the documentation
-----------------------------

[](#️-generate-the-documentation)

We use [phpDocumentor](https://phpdoc.org/) to generate documentation into the `./docs` folder.

```
composer doc
```

🧾 License
---------

[](#-license)

Licensed under the [Mozilla Public License 2.0 (MPL‑2.0)](https://www.mozilla.org/en-US/MPL/2.0/).

👤 About the author
------------------

[](#-about-the-author)

- Author: Marc ALCARAZ (aka eKameleon)
- Email: `marc@ooop.fr`
- Website: `https://www.ooop.fr`

🔗 Related packages
------------------

[](#-related-packages)

- `oihana/php-core` – core helpers and utilities used by this library: `https://github.com/BcommeBois/oihana-php-core`
- `oihana/php-reflect` – reflection and hydration utilities: `https://github.com/BcommeBois/oihana-php-reflect`
- `oihana/php-system` – common helpers of the Oihana PHP framework: `https://github.com/BcommeBois/oihana-php-system`
- `oihana/php-schema` – object‑oriented implementation of the Schema.org vocabulary: `https://github.com/BcommeBois/oihana-php-schema`
- `oihana/php-standards` – constants and helpers based on major international standards (ISO, UN, UN/CEFACT, etc.): `https://github.com/BcommeBois/oihana-php-standards`

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance95

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~78 days

Total

5

Last Release

13d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d234506e51778dd3d1d61b6c2af6f294ff963651b4aa509b595d3d2a77b7d89b?d=identicon)[ooop](/maintainers/ooop)

---

Top Contributors

[![ekameleon](https://avatars.githubusercontent.com/u/749032?v=4)](https://github.com/ekameleon "ekameleon (78 commits)")

---

Tags

phpconsolecommands

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/oihana-php-commands/health.svg)

```
[![Health](https://phpackages.com/badges/oihana-php-commands/health.svg)](https://phpackages.com/packages/oihana-php-commands)
```

###  Alternatives

[pimcore/pimcore

Content &amp; Product Management Framework (CMS/PIM/E-Commerce)

3.8k3.8M508](/packages/pimcore-pimcore)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M572](/packages/shopware-core)

PHPackages © 2026

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