2017 © Pedro PelĂĄez
 

library zend-tablegateway-factory

Creates TableGateways according to schema and table name provided.

image

phphackes/zend-tablegateway-factory

Creates TableGateways according to schema and table name provided.

  • Wednesday, June 27, 2018
  • by 0x3175633435
  • Repository
  • 0 Watchers
  • 0 Stars
  • 61 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Maintainability Latest Stable Version Latest Unstable Version, (*1)

Setup the factory

All the factory requires is a database adapter., (*2)

$adapter = $serviceLocator->get('Zend/Db/Adapter/Adapter');
$factory = new TableGatewayFactory($adapter);

Getting a TableGateway

Since you have provided the adapter now you can directly create the TableGateway using just the table name or also a schema name., (*3)

$users = $factory->create('users');
$users = $factory->create('users', 'myAuthSchema');

Running the commands

Now the TableGateway is created, you can use it like it have always been., (*4)

$rows = $users->select([
   'username' => 'admin',
   'password' => 'nimda'
])->toArray();

The Versions

27/06 2018

dev-master

9999999-dev

Creates TableGateways according to schema and table name provided.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas A. de AraĂșjo

26/06 2018

v1.0.0

1.0.0.0

Creates TableGateways according to schema and table name provided.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Lucas A. de AraĂșjo