https://github.com/matterstech/matters-repository
Matters proposal usage of zend-repository
https://github.com/matterstech/matters-repository
abstract filters matters repository repository-pattern zend
Last synced: 5 months ago
JSON representation
Matters proposal usage of zend-repository
- Host: GitHub
- URL: https://github.com/matterstech/matters-repository
- Owner: matterstech
- Created: 2018-02-14T11:21:29.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-03T12:58:45.000Z (over 6 years ago)
- Last Synced: 2025-06-04T18:28:40.654Z (about 1 year ago)
- Topics: abstract, filters, matters, repository, repository-pattern, zend
- Language: PHP
- Size: 472 KB
- Stars: 1
- Watchers: 18
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# matters-repository
Matters proposal usage of zend-repository
# Usage
## Definition of a \Matters\Repository
```php
select();
$select->where
->equalTo([
'name' => $name,
]);
$select->order(['created_at' => 'DESC']);
return $this->fetchListEntities($select);
}
}
```
## Instanciation
```php
findAllByName('Bob');
```
# Tests
```php
./vendor/bin/phpunit tests
```