2017 © Pedro Peláez
 

library dbal

DBAL layer for zend expressive

image

phpmodules/dbal

DBAL layer for zend expressive

  • Wednesday, June 13, 2018
  • by twn39
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

DBAL layer for zend expressive., (*1)

Install

composer require phpmodules/dbal

Usage

in config/autoload/zend-expressive.global.php or config/autoload/development.local.php:, (*2)

return [
    // Toggle the configuration cache. Set this to boolean false, or remove the
    // directive, to disable configuration caching. Toggling development mode
    // will also disable it by default; clear the configuration cache using
    // `composer clear-config-cache`.
    ConfigAggregator::ENABLE_CACHE => true,

    // Enable debugging; typically used to provide debugging information within templates.
    'debug' => false,

    'zend-expressive' => [
        // Provide templates for the error handling middleware to use when
        // generating responses.
        'error_handler' => [
            'template_404'   => 'error::404',
            'template_error' => 'error::error',
        ],
    ],

    'DB' => [
        'dbname' => 'db',
        'user' => 'name',
        'password' => 'password',
        'host' => 'localhost',
        'driver' => 'pdo_pgsql',
        'port' => 5432,
        'charset' => 'utf8',
    ]
];

in config/config.php add:, (*3)

$aggregator = new ConfigAggregator([

    ...


    // Default App module config
    \App\ConfigProvider::class,
    \PHPModules\DBAL\ConfigProvider::class,

    ...

], $cacheConfig['config_cache_path']);

return $aggregator->getMergedConfig();

The Versions

13/06 2018

dev-master

9999999-dev

DBAL layer for zend expressive

  Sources   Download

MIT

The Requires

 

by weinan

13/06 2018

1.0.2

1.0.2.0

DBAL layer for zend expressive

  Sources   Download

MIT

The Requires

 

by weinan

13/06 2018

1.0.1

1.0.1.0

DBAL layer for zend expressive

  Sources   Download

MIT

The Requires

 

by weinan

13/06 2018

1.0.0

1.0.0.0

DBAL layer for zend expressive

  Sources   Download

MIT

The Requires

 

by weinan