2017 © Pedro Peláez
 

sardatabases sardatabases

Vanilla Database module for Zend Framework 2

image

svenanders/sardatabases

Vanilla Database module for Zend Framework 2

  • Saturday, April 5, 2014
  • by svenanders
  • Repository
  • 1 Watchers
  • 0 Stars
  • 929 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Database modules for ZF2

A ZF2 module to make connecting to databases a breeze, (*1)

Currently includes support for MongoDB and MySQL. More will be added eventually, (*2)

Note about MAMP and MySQL

For local testing, use 127.0.0.1 instead of localhost, and uncheck "Allow local access only" in the MAMP PRO settings., (*3)

More info

http://blog.robbestad.com, (*4)

How to use

In your composer.json, add the following line, (*5)

"svenanders/sardatabases": "dev-master"

Add the following line to your application.config.php:, (*6)

'modules' => array(
    'SarDatabases',
),

In your code, include the class:, (*7)

use SarDatabases;

and then in your functions, use it like this:, (*8)

$dbConn = new Databases\SarMongo("environment", "database", "collection");
$cursor = $dbConn->find(array("key" => "value"));

Supports:, (*9)

->find
->insert
->update
->delete

Tests:, (*10)

execute phpunit vendor/svenanders/sardatabases/tests/ from the root of your project to run the tests, (*11)

License:

Sven Anders Robbestad (C) 2014, (*12)

CC BY, (*13)

The Versions

05/04 2014

dev-develop

dev-develop

Vanilla Database module for Zend Framework 2

  Sources   Download

public domain

The Requires

  • php >=5

 

05/04 2014

dev-master

9999999-dev

Vanilla Database module for Zend Framework 2

  Sources   Download

public domain

The Requires

  • php >=5

 

05/04 2014

0.1.2

0.1.2.0

Vanilla Database module for Zend Framework 2

  Sources   Download

public domain

The Requires

  • php >=5

 

05/04 2014

0.1.1

0.1.1.0

Vanilla Database module for Zend Framework 2

  Sources   Download

public domain

The Requires

  • php >=5