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
- Host: GitHub
- URL: https://github.com/kocal/zend-expressive-database
- Owner: Kocal
- Created: 2017-08-05T20:55:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-08-05T21:10:15.000Z (over 8 years ago)
- Last Synced: 2025-02-18T12:06:01.646Z (12 months ago)
- Topics: database, zend-expressive, zend-expressive-database
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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