2017 © Pedro Peláez
 

library pomm-service-provider

Pomm Service Provider for the Silex 2.x microframework.

image

pomm-project/pomm-service-provider

Pomm Service Provider for the Silex 2.x microframework.

  • Friday, November 25, 2016
  • by chanmix51
  • Repository
  • 5 Watchers
  • 8 Stars
  • 12,242 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 12 % Grown

The README.md

Pomm Service Provider

This package contains a Pomm ServiceProvider for the Silex micro-framework., (*1)

Installation

To install this library, run the command below:, (*2)

    composer require pomm-project/pomm-service-provider ~2.0@dev

And enable it in your application:, (*3)

<?php

use PommProject\Silex\ServiceProvider as PommProvider;
// …
$app->register(new PommProvider\PommServiceProvider(),
    [
        'pomm.configuration' =>
        [
            'my_db1' => ['dsn' => 'pgsql://user:pass@host:port/db_name'],
            'my_db2' => 
                [
                    'dsn' => … ,
                    'class:session_builder' => '\PommProject\ModelManager\SessionBuilder',
                ],
            …
        ],
        'pomm.logger.service' => 'monolog', // default
    ]
);

This package also contain a PommProfilerServiceProvider to be used with the WebProfileProvider., (*4)

<?php

use PommProject\Silex\ServiceProvider as PommProvider;
// …
$app->register(new PommProvider\PommProfilerServiceProvider());

If you want to use the ModelManager package, be sure to specify either the model manager SessionBuilder or, better: your project session builder., (*5)

Usage

<?php
// …
$iterator = $app['pomm']['my_db']
    ->getQueryManager()
    ->query('select …', ['param1', 'param2', … ]);

Check out, (*6)

The Versions

25/11 2016

dev-silex-2

dev-silex-2 http://www.pomm-project.org

Pomm Service Provider for the Silex 2.x microframework.

  Sources   Download

MIT

The Requires

 

silex pomm

11/11 2016

dev-silex-1

dev-silex-1 http://www.pomm-project.org

Pomm Service Provider for the Silex 1.x microframework.

  Sources   Download

MIT

The Requires

 

silex pomm

08/12 2014

dev-master

9999999-dev http://www.pomm-project.org

Pomm Service Provider for the Silex microframework.

  Sources   Download

MIT

The Requires

 

by Jérôme Macias

silex pomm