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.3(9mo ago)01104MPL-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 1mo ago

READMEChangelogDependencies (14)Versions (5)Used By (4)

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

41

—

FairBetter than 89% of packages

Maintenance76

Regular maintenance activity

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

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 ~0 days

Total

4

Last Release

278d 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 (77 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

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[phan/phan

A static analyzer for PHP

5.6k11.2M1.1k](/packages/phan-phan)[nunomaduro/phpinsights

Instant PHP quality checks from your console.

5.6k10.8M426](/packages/nunomaduro-phpinsights)[crunzphp/crunz

Schedule your tasks right from the code.

2292.0M6](/packages/crunzphp-crunz)[alecrabbit/php-console-spinner

Extremely flexible spinner for \[async\] php cli applications

24032.0k2](/packages/alecrabbit-php-console-spinner)

PHPackages © 2026

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