Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alash3al/xonsole
A tiny cli framework based on laravel\console, so you can use it without full laravel installation
https://github.com/alash3al/xonsole
cli command-line console-framework laravel php
Last synced: 23 days ago
JSON representation
A tiny cli framework based on laravel\console, so you can use it without full laravel installation
- Host: GitHub
- URL: https://github.com/alash3al/xonsole
- Owner: alash3al
- License: mit
- Created: 2017-11-08T01:57:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-08T02:13:51.000Z (about 7 years ago)
- Last Synced: 2024-11-23T11:29:50.820Z (29 days ago)
- Topics: cli, command-line, console-framework, laravel, php
- Language: PHP
- Size: 188 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xonsole
A tiny PHP framework based on laravel console, just for console based apps, now you can use the power of larave commands without a full laravel installation.# Usage
There is no magic, just goto the `commands` directory, and create your command under the namespace `Xonsole\Commands````php
info("Hello World!");
}
}
```Then open your `terminal` and `php app.php hello` !
# PHAR
There is a tool called [`box`](https://github.com/box-project/box2) included with `Xonsole`, its role is generating a `PHAR` package for your app.
```bash
php box build
```
and you will find the `app.phar` file that you can distribute anywhere!# Author
I'm [Mohammed Al Ashaal](http://alash3al.github.io), a Backend Ninja!# Contribution
Just create a pull request with your changes and I'll review then merge if needed.