2017 © Pedro Peláez
 

library db

Database extension for maer/enstart framework

image

enstart/db

Database extension for maer/enstart framework

  • Saturday, July 1, 2017
  • by enstart
  • Repository
  • 1 Watchers
  • 0 Stars
  • 30 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 20 % Grown

The README.md

Enstart Extension: Database

Wrapper for mrjgreen/database for the enstart framework., (*1)

Dependencies:

  • enstart/core version 0.3+
  • PHP 7.0+ with the PDO extension

Install

composer require enstart/db

Config:

// Database connection settings
'database' => [
    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'database',
    'username'  => 'username',
    'password'  => 'password',
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci'
],

// Register service provider
'providers' => [
    ...
    'Enstart\Ext\Database\ServiceProvider',
],

Access the extension

// Get a copy of the instance
$db = $app->container->make('Database\Connection');

// or through the alias:
$app->db

// or through dependency injection (if you type hint it in your constructor)
use Database\Connection

Read more @ https://github.com/mrjgreen/database, (*2)

The Versions

01/07 2017

dev-master

9999999-dev

Database extension for maer/enstart framework

  Sources   Download

MIT

The Requires

 

by Magnus Eriksson

01/07 2017

dev-develop

dev-develop

Database extension for maer/enstart framework

  Sources   Download

MIT

The Requires

 

by Magnus Eriksson

01/07 2017

0.1.0

0.1.0.0

Database extension for maer/enstart framework

  Sources   Download

MIT

The Requires

 

by Magnus Eriksson