2017 © Pedro PelĆ”ez
 

library silex-manager-provider

A silex service provider that adds Manager to loader other service providers

image

cekurte/silex-manager-provider

A silex service provider that adds Manager to loader other service providers

  • Tuesday, May 3, 2016
  • by jpcercal
  • Repository
  • 1 Watchers
  • 0 Stars
  • 94 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 1 % Grown

The README.md

SilexManagerProvider

Build Status Code Climate Coverage Status Latest Stable Version License SensioLabsInsight, (*1)

  • A simple silex service provider (covered by php unit tests) that adds a Manager to register other Service Providers to increase the power of your application, contribute with this project!

Installation

The package is available on Packagist. The source files is PSR-2 compatible. Autoloading is PSR-4 compatible., (*2)

composer require cekurte/silex-manager-provider

Documentation

To use this library you need register the Cekurte\Silex\Manager\Provider\ManagerServiceProvider. See also the library Environment cekurte/environment., (*3)

<?php

use Cekurte\Environment\Environment;
use Cekurte\Silex\Manager\Provider\ManagerServiceProvider;

// ...
$app['cekurte.manager.providers'] = [
    // ...
    'Silex\Provider\SessionServiceProvider' => [
        'register' => true,
    ],
    'Silex\Provider\SwiftmailerServiceProvider' => [
        'register' => true,
        'type'     => 'array',
        'src'      => [
            'swiftmailer.use_spool' => Environment::get('SWIFTMAILER_USE_SPOOL'),
            'swiftmailer.options'   => [
                'host'       => Environment::get('SMTP_HOST'),
                'port'       => Environment::get('SMTP_PORT'),
                'username'   => Environment::get('SMTP_USERNAME'),
                'password'   => Environment::get('SMTP_PASSWORD'),
                'encryption' => Environment::get('SMTP_ENCRYPTION'),
                'auth_mode'  => Environment::get('SMTP_AUTH_MODE'),
            ],
        ],
    ],
    // ...
];

$app->register(new ManagerServiceProvider());

// ...

If you liked of this library, give me a star =)., (*4)

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Make your changes
  4. Run the tests, adding new ones for your own code if necessary (vendor/bin/phpunit)
  5. Commit your changes (git commit -am 'Added some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request

The Versions

03/05 2016

dev-master

9999999-dev

A silex service provider that adds Manager to loader other service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex register manager provider loader boot

03/05 2016

dev-develop

dev-develop

A silex service provider that adds Manager to loader other service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex register manager provider loader boot

07/12 2015

v0.0.5

0.0.5.0

A silex service provider that adds Manager to loader other service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex register manager provider loader boot

01/10 2015

v0.0.4

0.0.4.0

A silex service provider that adds Manager to loader other service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex register manager provider loader boot

01/10 2015

v0.0.3

0.0.3.0

A silex service provider that adds Manager to loader other service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex register manager provider loader boot

01/10 2015

v0.0.2

0.0.2.0

A silex service provider that adds Manager to loader other service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex register manager provider loader boot

28/09 2015

v0.0.1

0.0.1.0

A silex service provider that adds Manager to loader other service providers

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex register manager provider loader boot