{"id":36975802,"url":"https://github.com/matterstech/matters-repository","last_synced_at":"2026-01-13T22:06:12.032Z","repository":{"id":56991867,"uuid":"121502631","full_name":"matterstech/matters-repository","owner":"matterstech","description":"Matters proposal usage of zend-repository","archived":false,"fork":false,"pushed_at":"2020-02-03T12:58:45.000Z","size":483,"stargazers_count":1,"open_issues_count":6,"forks_count":1,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-06-04T18:28:40.654Z","etag":null,"topics":["abstract","filters","matters","repository","repository-pattern","zend"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/matterstech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-14T11:21:29.000Z","updated_at":"2019-08-20T15:51:19.000Z","dependencies_parsed_at":"2022-08-21T12:20:40.803Z","dependency_job_id":null,"html_url":"https://github.com/matterstech/matters-repository","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/matterstech/matters-repository","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matterstech%2Fmatters-repository","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matterstech%2Fmatters-repository/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matterstech%2Fmatters-repository/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matterstech%2Fmatters-repository/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/matterstech","download_url":"https://codeload.github.com/matterstech/matters-repository/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/matterstech%2Fmatters-repository/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28402177,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["abstract","filters","matters","repository","repository-pattern","zend"],"created_at":"2026-01-13T22:06:11.405Z","updated_at":"2026-01-13T22:06:12.025Z","avatar_url":"https://github.com/matterstech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# matters-repository\nMatters proposal usage of zend-repository\n\n# Usage\n\n## Definition of a \\Matters\\Repository\n\n```php\n\u003c?php\n    class TableRepository extends \\Matters\\Repository {\n\n        public function findAllByName(string $name)\n        {\n            $select = $this-\u003eselect();\n            $select-\u003ewhere\n                -\u003eequalTo([\n                    'name'       =\u003e $name,\n                ]);\n\n            $select-\u003eorder(['created_at' =\u003e 'DESC']);\n\n            return $this-\u003efetchListEntities($select);\n        }\n    }\n```\n\n## Instanciation\n\n```php\n\u003c?php\n    $hydratingResultSet = new \\Zend\\Db\\ResultSet\\HydratingResultSet(\n        new Hydrator(),\n        new Model()\n    );\n\n    $tableGateway = new \\Zend\\Db\\TableGateway\\TableGateway(\n        'table_name',\n        new \\Zend\\Db\\Adapter\\Adapter($config),\n        null,\n        $hydratingResultSet\n    );\n\n    $tableRepository = new TableRepository($tableGateway);\n    $entities = $tableRepository-\u003efindAllByName('Bob');    \n```\n\n# Tests\n\n```php\n./vendor/bin/phpunit tests\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatterstech%2Fmatters-repository","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmatterstech%2Fmatters-repository","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmatterstech%2Fmatters-repository/lists"}