As a developer, managing routine tasks can be time-consuming. From creating project templates to managing dependencies, these tasks often take up a lot of our valuable development time. With the PHP CLI Toolbox, you can automate and simplify these tasks, allowing you to focus on what truly matters - writing code!
- Create project templates easily
- Manage dependencies via a simple CLI
- Automate common developer tasks
- Integrate with existing PHP projects effortlessly
- Provide a user-friendly command-line interface
- PHP 7.2 or higher
- Composer
To install PHP CLI Toolbox, run the following command:
composer global require yourusername/php-cli-toolboxEnsure that your ~/.composer/vendor/bin is in your PATH so the toolbox is accessible from the command line.
You can create a new project template using the following command:
php-cli-toolbox create my-projectThis will set up a directory called my-project with all the necessary files and a base structure to get you started.
To add a new dependency to your project, use the following command:
php-cli-toolbox add dependency-nameThis command will update your composer.json and install the specified dependency automatically.
You can also automate common tasks with custom scripts. Use the command:
php-cli-toolbox automate task-nameReplace task-name with the name of the task you would like to automate, such as checking for updates or running tests.