Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/osteel/php-cli-demo
PHP command-line tool demonstration
https://github.com/osteel/php-cli-demo
cli composer console php symfony
Last synced: 15 days ago
JSON representation
PHP command-line tool demonstration
- Host: GitHub
- URL: https://github.com/osteel/php-cli-demo
- Owner: osteel
- License: mit
- Created: 2022-01-04T14:28:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-23T12:49:42.000Z (almost 2 years ago)
- Last Synced: 2024-05-16T00:41:35.757Z (6 months ago)
- Topics: cli, composer, console, php, symfony
- Language: PHP
- Homepage:
- Size: 568 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PHP CLI Demo
PHP command-line tool demonstration
## Instal
This CLI application is a small game written in PHP and is installed using [Composer](https://getcomposer.org):
```
composer global require osteel/php-cli-demo
```Make sure the `~/.composer/vendor/bin` directory is in your system's `PATH`.
Show me how
If it's not already there, add the following line to your Bash configuration file (usually `~/.bash_profile`, `~/.bashrc`, `~/.zshrc`, etc.):
```
export PATH=~/.composer/vendor/bin:$PATH
```If the file doesn't exist, create it.
Run the following command on the file you've just updated for the change to take effect:
```
source ~/.bash_profile
```## Use
All you need to do is call the `play` command to start the game:
```
demo play
```## Update
```
composer global update osteel/php-cli-demo
```## Delete
```
composer global remove osteel/php-cli-demo
```