Skip to content
This repository has been archived by the owner. It is now read-only.
A minimal orchestration of Symfony's console with Illuminate components on top.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
bootstrap
config
src
storage
.env.example
.gitignore
README.md
composer.json

README.md

Illuminate Console App Skeleton

A minimal orchestration of Symfony's console with Illuminate components on top.

In clearer words; A minimal DI-enabled console application skeleton built on top of symfony/console and standalone Illuminate (Laravel) components.

Included Illuminate components:

  • illuminate/config
  • illuminate/container

Supported Illuminate components:

  • illuminate/log
  • illuminate/database
  • illuminate/filesystem

New Application

Create a new application

$ composer create-project sepehr/illuminate-cli-app new-cli-app/

Running your new application

$ chmod +x bin/app
$ bin/app

Please note that this is not a framework, but an application skeleton; thus you're free to make any changes to any files you want; there's no "core".

Example command

App\Commands\Example\Welcome

$ bin/app example:welcome [your-name]

Remove the example command

Remove the command class from config/app.php:

$app->add(
    new Example\ExampleCommand($container)
);

And then remove the directory:

$ rm -r src/Commands/Example

New command

Add a new regular command

Add a new container-aware command

Testing your commands

Adding more Illiminate components

...

You can’t perform that action at this time.