{"id":18658991,"url":"https://github.com/delboy1978uk/bone-controller","last_synced_at":"2026-02-11T00:31:57.282Z","repository":{"id":56965045,"uuid":"244396484","full_name":"delboy1978uk/bone-controller","owner":"delboy1978uk","description":"Controller package for Bone Framework. Part of the core Bone packages","archived":false,"fork":false,"pushed_at":"2026-01-29T18:36:56.000Z","size":316,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-30T02:06:37.493Z","etag":null,"topics":["bone-framework","php-framework"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/delboy1978uk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-03-02T14:50:05.000Z","updated_at":"2026-01-29T18:35:26.000Z","dependencies_parsed_at":"2025-08-24T05:37:44.680Z","dependency_job_id":"18cbddd5-d40e-4ba5-9b19-c7643a844152","html_url":"https://github.com/delboy1978uk/bone-controller","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"35d181e75e4219128950de67ce51ad53d840e4b2"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/delboy1978uk/bone-controller","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delboy1978uk%2Fbone-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delboy1978uk%2Fbone-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delboy1978uk%2Fbone-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delboy1978uk%2Fbone-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/delboy1978uk","download_url":"https://codeload.github.com/delboy1978uk/bone-controller/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/delboy1978uk%2Fbone-controller/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29323561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-10T20:44:44.282Z","status":"ssl_error","status_checked_at":"2026-02-10T20:44:43.393Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["bone-framework","php-framework"],"created_at":"2024-11-07T07:35:13.979Z","updated_at":"2026-02-11T00:31:57.243Z","avatar_url":"https://github.com/delboy1978uk.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bone-controller\n[![Latest Stable Version](https://poser.pugx.org/delboy1978uk/bone-controller/v/stable)](https://packagist.org/packages/delboy1978uk/bone-controller) [![Total Downloads](https://poser.pugx.org/delboy1978uk/bone/downloads)](https://packagist.org/packages/delboy1978uk/bone) [![Latest Unstable Version](https://poser.pugx.org/delboy1978uk/bone-controller/v/unstable)](https://packagist.org/packages/delboy1978uk/bone-controller) [![License](https://poser.pugx.org/delboy1978uk/bone-controller/license)](https://packagist.org/packages/delboy1978uk/bone-controller)\u003cbr /\u003e\n![build status](https://github.com/delboy1978uk/bone-controller/actions/workflows/master.yml/badge.svg) [![Code Coverage](https://scrutinizer-ci.com/g/delboy1978uk/bone-controller/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/delboy1978uk/bone-controller/?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/delboy1978uk/bone-controller/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/delboy1978uk/bone-controller/?branch=master)\u003cbr /\u003e\n\nController package for Bone Framework\n## installation\nbone-controller is part of the core functionality of `delboy1978uk/bone`, and as such will already be installed in your\napp.\n## usage\nThe `Bone\\Controller\\Controller` comes with a serializer, view engine, translator, and site config info. Just extend it in your own\nclass to get these features, and in your package registration class, pass it through `Bone\\Controller\\Init`:\n```php\n$controller = new YourController();\n\nreturn Init::controller($controller, $c); // where $c is the container\n```\nThe `Init` class is a convenience class which checks for the following, and populates from the DI container.\n\n| Feature        | Interface                                            | Trait                                          |\n|----------------|------------------------------------------------------|------------------------------------------------|\n| Entity Manager | Bone\\BoneDoctrine\\Traits\\EntityManagerAwareInterface | Bone\\BoneDoctrine\\Traits\\HasEntityManagerTrait |\n| i18n           | Bone\\I18n\\I18nAwareInterface                         | Bone\\I18n\\Traits\\HasTranslatorTrait            |\n| Logger         | Bone\\Log\\Traits\\HasLoggerTrait                       | Bone\\Log\\Traits\\HasLoggerTrait                 |\n| PDO Connection | Bone\\Db\\DbProviderInterface                          | Bone\\Db\\HasDbTrait                             |\n| Serializer     | Bone\\Controller\\SerializerAwareInterface             | Bone\\Controller\\Traits\\HasSerializer           |\n| Session        | Bone\\Server\\SessionAwareInterface                    | Bone\\Server\\Traits\\HasSessionTrait             |\n| Site Config    | Bone\\Server\\SiteConfigAwareInterface                 | Bone\\Server\\Traits\\HasSiteConfigTrait          |\n| View           | Bone\\View\\ViewAwareInterface                         | Bone\\View\\Traits\\HasViewTrait                  |\n\nIn your own controller, implement the Interface and use the Trait:\n```php\nuse Bone\\BoneDoctrine\\EntityManagerAwareInterface;\nuse Bone\\BoneDoctrine\\Traits\\HasEntityManagerTrait;\n\nclass MyController implements EntityManagerAwareInterface\n{\n    use HasEntityManagerTrait;\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelboy1978uk%2Fbone-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelboy1978uk%2Fbone-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelboy1978uk%2Fbone-controller/lists"}