oihana / php-commands
The Oihana PHP Commands library
dev-main
2025-08-10 15:49 UTC
Requires
- php: >=8.4
- oihana/php-core: dev-main
- oihana/php-files: dev-main
- oihana/php-schema: dev-main
- oihana/php-standards: dev-main
- oihana/php-system: dev-main
- symfony/console: ^7.3
- symfony/lock: ^7.3
- symfony/string: ^7.3
- symfony/uid: ^7.3
Requires (Dev)
- mikey179/vfsstream: ^1.6
- nunomaduro/collision: ^8.8
- phpdocumentor/shim: ^3.8
- phpunit/phpunit: ^12
This package is auto-updated.
Last update: 2025-08-10 15:49:16 UTC
README
An open-source PHP framework designed to create advanced command-line applications. Built on top of the Oihana PHP ecosystem, it provides ready-to-use tools to manage and automate common server and web application tasks.
π Documentation
Full project documentation is available at:
π https://bcommebois.github.io/oihana-php-commands
π¦ Installation
Requires PHP 8.4+
Install via Composer:
composer require oihana/php-commands
β¨ Features
With it, you can:
- Manage MySQL databases β create users, grant privileges, perform backups, and restore.
- Automate database & web app backups β schedule and run incremental or full backups.
- Install & update applications β deploy, upgrade, and maintain web projects.
- Manage caches β clear and control systems like Memcached and Redis.
- Handle SSL certificates β automate Letβs Encrypt / Certbot renewal and installation.
- Configure NGINX servers β generate modular configuration files and reload services.
- And much more β from system maintenance scripts to environment setup.
The framework includes:
- A modular Symfony Console integration for creating custom CLI commands.
- Pre-built command modules for database, cache, web server, and certificate management.
- A flexible options system for easy configuration and automation.
- Extensible architecture for adding your own tasks and workflows.
Perfect for:
- DevOps automation
- Web hosting management
- Deployment pipelines
- Local and production environment setup
β Running Unit Tests
To run all tests:
composer run-script test
To run a specific test file:
composer run test ./tests/oihana/date/TimeIntervalTest.php
π§Ύ License
This project is licensed under the Mozilla Public License 2.0 (MPL-2.0).
π€ About the author
- Author : Marc ALCARAZ (aka eKameleon)
- Mail : marc@ooop.fr
- Website : http://www.ooop.fr
π οΈ Generate the Documentation
We use phpDocumentor to generate the documentation into the ./docs folder.
Usage
Run the command :
composer doc