{"id":17344011,"url":"https://github.com/tractorcow/silverstripe-proxy-db","last_synced_at":"2026-03-16T07:34:10.336Z","repository":{"id":29440130,"uuid":"121699865","full_name":"tractorcow/silverstripe-proxy-db","owner":"tractorcow","description":"Use proxy for DB","archived":false,"fork":false,"pushed_at":"2024-03-19T01:17:44.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T20:13:03.605Z","etag":null,"topics":[],"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/tractorcow.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-16T00:25:33.000Z","updated_at":"2022-05-02T09:07:09.000Z","dependencies_parsed_at":"2024-03-19T02:43:30.983Z","dependency_job_id":null,"html_url":"https://github.com/tractorcow/silverstripe-proxy-db","commit_stats":{"total_commits":3,"total_committers":3,"mean_commits":1.0,"dds":0.6666666666666667,"last_synced_commit":"2ee0c6b46a67e24df3f4132bc831284f6b39089d"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tractorcow%2Fsilverstripe-proxy-db","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tractorcow%2Fsilverstripe-proxy-db/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tractorcow%2Fsilverstripe-proxy-db/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tractorcow%2Fsilverstripe-proxy-db/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tractorcow","download_url":"https://codeload.github.com/tractorcow/silverstripe-proxy-db/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248952352,"owners_count":21188426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-15T16:10:54.147Z","updated_at":"2026-03-16T07:34:05.293Z","avatar_url":"https://github.com/tractorcow.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Database proxy\n\nOk, so you want to proxy the database.\n\nInstall this module, and decorate the factory with code you want to extend\n\n```yaml\n---\nName: myproxydb\nAfter: '#proxydb'\n---\nTractorCow\\SilverStripeProxyDB\\ProxyDBFactory:\n  extensions:\n    - ProxyDBExtension\n```\n\nThen in your code you can do this\n\n```php\n\u003c?php\n\nuse SilverStripe\\Core\\Extension;\nuse TractorCow\\ClassProxy\\Generators\\ProxyGenerator;\n\nclass ProxyDBExtension extends Extension\n{\n    public function updateProxy(ProxyGenerator \u0026$proxy)\n    {\n        $proxy = $proxy-\u003eaddMethod('manipulate', function ($args, $next) {\n            SearchManipulator::manipulate($args[0]);\n            return $next(...$args);\n        });\n    }\n}\n```\n\nYou can chain methods; All addMethod() calls on the same method name will \nform a set of middleware. First methods registered are executed first.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftractorcow%2Fsilverstripe-proxy-db","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftractorcow%2Fsilverstripe-proxy-db","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftractorcow%2Fsilverstripe-proxy-db/lists"}