{"id":18496947,"url":"https://github.com/shapecode/repository-as-a-service-bundle","last_synced_at":"2025-08-26T15:21:21.434Z","repository":{"id":57048934,"uuid":"60513903","full_name":"shapecode/repository-as-a-service-bundle","owner":"shapecode","description":null,"archived":false,"fork":false,"pushed_at":"2019-03-04T15:29:51.000Z","size":32,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T19:39:08.007Z","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/shapecode.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":"2016-06-06T09:01:01.000Z","updated_at":"2018-06-12T13:14:55.000Z","dependencies_parsed_at":"2022-08-23T19:10:15.063Z","dependency_job_id":null,"html_url":"https://github.com/shapecode/repository-as-a-service-bundle","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Frepository-as-a-service-bundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Frepository-as-a-service-bundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Frepository-as-a-service-bundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shapecode%2Frepository-as-a-service-bundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shapecode","download_url":"https://codeload.github.com/shapecode/repository-as-a-service-bundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949635,"owners_count":21023360,"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-11-06T13:32:39.047Z","updated_at":"2025-04-09T00:30:28.532Z","avatar_url":"https://github.com/shapecode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Symfony - Repository as a Service (RaaS)\n=======================\n\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/45d25f2d-0f87-43f7-ba74-b239562c41e1/mini.png)](https://insight.sensiolabs.com/projects/45d25f2d-0f87-43f7-ba74-b239562c41e1)\n[![Dependency Status](https://www.versioneye.com/user/projects/57703b696718940052ba8cc2/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/57703b696718940052ba8cc2)\n[![Latest Stable Version](https://poser.pugx.org/shapecode/repository-as-a-service/v/stable)](https://packagist.org/packages/shapecode/repository-as-a-service)\n[![Total Downloads](https://poser.pugx.org/shapecode/repository-as-a-service/downloads)](https://packagist.org/packages/shapecode/repository-as-a-service)\n[![License](https://poser.pugx.org/shapecode/repository-as-a-service/license)](https://packagist.org/packages/shapecode/repository-as-a-service)\n\nThis bundle allows to register repositories as a service.\n\nInstall instructions\n--------------------------------\n\nInstalling this bundle can be done through these simple steps:\n\nAdd the bundle to your project as a composer dependency:\n```javascript\n// composer.json\n{\n    // ...\n    require: {\n        // ...\n        \"shapecode/repository-as-a-service\": \"~1.2\"\n    }\n}\n```\n\nUpdate your composer installation:\n```sh\n$ composer update\n```\n\nAdd the bundle to your application kernel:\n```php\n\u003c?php\n\n// application/ApplicationKernel.php\npublic function registerBundles()\n{\n\t// ...\n\t$bundle = array(\n\t\t// ...\n        new Shapecode\\Bundle\\RasSBundle\\ShapecodeRasSBundle(),\n\t);\n    // ...\n\n    return $bundles;\n}\n```\n\nStart using the bundle and set repositories as services:\n```yaml\napp.repository.example:\n    class: %app.repository.example.class%\n    tags:\n        -  { name: doctrine.repository, class: %app.entity.example.class%, alias: example_repository }\n```\n\nor let the bundle do the job for you. It creates automatically services for you. Just access it with \"lowercaseentitnyname_repository\".\n \n```php\n\u003c?php\n\n$this-\u003egetContainer()-\u003eget('lowercaseentitnyname_repository');\n```\n \nThe old way to get repository is also supported. If you get them like this ...\n\n```php\n\u003c?php\n\n$this-\u003egetRepository('ShapecodeRasSBundle:TestEntity');\n```\n\n... you get the service off the repository instead.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Frepository-as-a-service-bundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshapecode%2Frepository-as-a-service-bundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshapecode%2Frepository-as-a-service-bundle/lists"}