This is a User Greetings console app built using PHP and Symfony/Console.
- Note: This app was built for my Medium article Build a PHP console app using Symfony.
- PHP
- Symfony
- Symfony/Console
- Clone this repo here.
- cd
php-console-app-using-symfony
- Run
composer require symfony/console
Console App v1.0.0
Usage:
command [options] [arguments]
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Available commands:
greet Greet a user based on the time of the day.
help Displays help for a command
list Lists commands
./console greet Nnamdi
Output
====**** User Greetings Console App ****====
==========================================
Good evening, Nnamdi
- Fork this repository
- Clone it to your local machine
- Create a branch for the feature you want to implement
- Push your changes to your repository
- Submit a pull request
- Issue Tracker: https://github.com/philipszdavido/php-console-app-using-symfony/issues
- Source Code: https://github.com/philipszdavido/php-console-app-using-symfony
If you are having issues, please let me know. Mail me at: [email protected]