sentgine/arise

A simple and lightweight wrapper for creating console commands using PHP.

v2.0.2 2024-04-19 08:04 UTC

This package is auto-updated.

Last update: 2024-04-19 08:08:05 UTC


README

License Latest Stable Version Total Downloads

A simple and lightweight wrapper for creating console commands using PHP. This package is built on top of the Symfony Console component.

Requirements

  • PHP 8.1.17 or higher.

Installation & Usage

(1) You can install the package via Composer to your existing PHP project by running the following command:

composer require sentgine/arise:^2.0.0

(2) Then, open your composer.json file and make sure to add the "Console\\Commands\\": "console/Commands" to your autoload.

"autoload": {
    "psr-4": {
        "App\\": "src/",
        "Console\\Commands\\": "console/Commands"
    }
},

(3) Run this command to regenerate your autoload files:

composer dump-autoload

(4) In your project's root directory, run the following command:

php vendor/sentgine/arise/initialize

This will create the "arise" file.

(5) Run this command in your terminal and you will see the list of commands:

php arise

(6) Finally, you can start creating a new command by running:

php arise make:command

Changelog

Please see the CHANGELOG file for details on what has changed.

Security

If you discover any security-related issues, please email sentgine@gmail.com instead of using the issue tracker.

Credits

Arise is built and maintained by Adrian Navaja.

  • Check out some cool tutorials and stuff on YouTube!
  • Catch my latest tweets and updates on Twitter (formerly X)!
  • Let's connect on a more professional note over on LinkedIn!
  • For more information about me and my work, visit my website: sentgine.com.

License

The MIT License (MIT). Please see the LICENSE file for more information.