Skip to content

alash3al/xonsole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


namespace Xonsole\Commands;

use Illuminate\Console\Command;

class Hello extends Command
{
	protected $description = "a hello world command";

	protected $signature = "hello";

	public function handle() {
		$this->info("Hello World!");
	}
}

Then open your terminal and php app.php hello !

PHAR

There is a tool called box included with Xonsole, its role is generating a PHAR package for your app.

php box build

and you will find the app.phar file that you can distribute anywhere!

Author

I'm Mohammed Al Ashaal, a Backend Ninja!

Contribution

Just create a pull request with your changes and I'll review then merge if needed.

About

A tiny cli framework based on laravel\console, so you can use it without full laravel installation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages