An open API service indexing awesome lists of open source software.

https://github.com/kocal/zend-expressive-database

Zend-Expressive subcomponent for database ORM
https://github.com/kocal/zend-expressive-database

database zend-expressive zend-expressive-database

Last synced: 11 months ago
JSON representation

Zend-Expressive subcomponent for database ORM

Awesome Lists containing this project

README

          

Zend-Expressive Database
========================

> A Zend-Expressive subcomponent for easily unifying database ORM usage.

## Current implementations

- [Doctrine](https://github.com/Kocal/zend-expressive-doctrinedatabase)

## Usage

### `DatabaseFactoryInterface`

This interface should be implemented by a class that will be invoked by Zend Expressive to initialize the ORM.

Example for Doctrine:
```php
get('config');
// ...
return EntityManager::create($foo, $bar);
}
}
```

### `DatabaseRepositoryInterface`

This interface should be implemented by a repository.

Example:

```php