2017 © Pedro Peláez
 

library consoleful

A simple library to work with Symfony Console Component and Symfony Dependency Injection Component

image

luismulinari/consoleful

A simple library to work with Symfony Console Component and Symfony Dependency Injection Component

  • Wednesday, June 15, 2016
  • by luismulinari
  • Repository
  • 0 Watchers
  • 9 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Consoleful

A simple library to work with Symfony Console Component and Symfony Dependency Injection Component, (*1)

======= Latest Stable Version Build Status Scrutinizer Code Quality Code Coverage, (*2)

Instalation

Use composer to add consoleful to your app, (*3)

"luismulinari/consoleful": "*", (*4)

Usage (example)

application.php - Entry Point, (*5)

<?php
use Lcobucci\DependencyInjection\ContainerConfig;
use LuisMulinari\Consoleful\Application;

$autoloader = require __DIR__ . '/vendor/autoload.php';

$application = new Application(
    'Application name',
    'Version',
    new ContainerConfig(__DIR__ . 'services.xml') // services.[xml|yml|php]
);

$application->add(new ExampleCommand());

$application->run();

ExampleCommand.php - Command file, (*6)

<?php

namespace Vendor\ExampleApp\Command;

use LuisMulinari\Consoleful\Command\ContainerAwareCommand;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;

class ExampleCommand extends ContainerAwareCommand
{
    protected function configure()
    {
        $this->setName("example");
        $this->setDescription('Description example');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
        $container = $this->getContainer();

        $container->get('service.example');
        $container->getParameter('parameter.example');
    }
}

You can see other examples here, (*7)

The Versions

15/06 2016

dev-master

9999999-dev

A simple library to work with Symfony Console Component and Symfony Dependency Injection Component

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Luis Henrique Mulinari

dependency injection console di symfony console symfony dependency injection

27/01 2016

0.1.2

0.1.2.0

A simple library to work with Symfony Console Component and Symfony Dependency Injection Component

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Luis Henrique Mulinari

dependency injection console di symfony console symfony dependency injection

27/01 2016

0.1.1

0.1.1.0

A simple library to work with Symfony Console Component and Symfony Dependency Injection Component

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Luis Henrique Mulinari

dependency injection console di symfony console symfony dependency injection

27/01 2016

0.1.0

0.1.0.0

A simple library to work with Symfony Console Component and Symfony Dependency Injection Component

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Luis Henrique Mulinari

dependency injection console di symfony console symfony dependency injection