2017 © Pedro Peláez
 

library saxulum-console

Saxulum Console Provider

image

saxulum/saxulum-console

Saxulum Console Provider

  • Friday, April 20, 2018
  • by dominikzogg
  • Repository
  • 1 Watchers
  • 5 Stars
  • 17,444 Installations
  • PHP
  • 10 Dependents
  • 9 Suggesters
  • 2 Forks
  • 1 Open issues
  • 17 Versions
  • 4 % Grown

The README.md

saxulum-console

works with plain silex-php, (*1)

Build Status Total Downloads Latest Stable Version Scrutinizer Code Quality, (*2)

Features

  • Add symfony console

Requirements

  • PHP 5.3+
  • Pimple 2.1+
  • Saxulum ClassFinder 1.0+
  • Symfony Console 2.3+
  • Symfony Finder 2.3+

Installation

Through Composer as saxulum/saxulum-console., (*3)

``` {.php} $container->register(new ConsoleProvider());, (*4)

### With translation cache (faster)

```{.php}
use Pimple\Container;
use Saxulum\Console\Silex\Provider\ConsoleProvider;

$container = new Container();
$container->register(new ConsoleProvider(), array(
    'console.cache' => '/path/to/cache'
));
  • debug == true: the cache file will be build at each load
  • debug == false: the cache file will be build if not exists, delete it if its out of sync

Without translation cache (slower)

```{.php} use Pimple\Container; use Saxulum\Console\Silex\Provider\ConsoleProvider;, (*5)

$container = new Container(); $container->register(new ConsoleProvider());, (*6)


Usage ----- ### Register a command ``` {.php} $container['console.commands'] = $container->extend('console.commands', function ($commands) use ($container) { $command = new SampleCommand; $command->setContainer($container); $commands[] = $command; return $commands; });

Register a path

One of their parent classes has to be: Saxulum\Console\Command\AbstractPimpleCommand, (*7)

``` {.php} $container['console.command.paths'] = $container->extend('console.command.paths', function ($paths) { $paths[] = DIR . '/../../Command';, (*8)

return $paths;

});, (*9)


Run the console ``` {.php} $container['console']->run();

The Versions

20/04 2018

dev-master

9999999-dev

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple saxulum

01/12 2015

2.x-dev

2.9999999.9999999.9999999-dev

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

01/12 2015

2.2.1

2.2.1.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

01/12 2015

3.1.1

3.1.1.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple saxulum

08/04 2015

2.2.0

2.2.0.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

01/04 2015

3.1.0

3.1.0.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple saxulum

16/09 2014

3.0.1

3.0.1.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple saxulum

23/06 2014

3.0.0

3.0.0.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple saxulum

07/05 2014

2.1.3

2.1.3.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

06/05 2014

2.1.2

2.1.2.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

06/05 2014

2.1.1

2.1.1.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

05/05 2014

2.1.0

2.1.0.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

01/05 2014

2.0.0

2.0.0.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

30/01 2014

1.2.0

1.2.0.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

16/01 2014

1.1.1

1.1.1.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

14/01 2014

1.1.0

1.1.0.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum

13/01 2014

1.0.0

1.0.0.0

Saxulum Console Provider

  Sources   Download

MIT

The Requires

 

The Development Requires

by Dominik Zogg

console silex pimple cilex saxulum