{"id":22771158,"url":"https://github.com/cspray/annotated-container-phpactor","last_synced_at":"2025-03-30T12:13:36.954Z","repository":{"id":265797347,"uuid":"641074281","full_name":"cspray/annotated-container-phpactor","owner":"cspray","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-15T18:15:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T00:54:27.146Z","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/cspray.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":"2023-05-15T18:14:37.000Z","updated_at":"2023-05-15T18:15:10.000Z","dependencies_parsed_at":"2024-12-03T09:01:50.561Z","dependency_job_id":"beb075fb-919d-4d71-af3c-534e35c51c91","html_url":"https://github.com/cspray/annotated-container-phpactor","commit_stats":null,"previous_names":["cspray/annotated-container-phpactor"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cspray%2Fannotated-container-phpactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cspray%2Fannotated-container-phpactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cspray%2Fannotated-container-phpactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cspray%2Fannotated-container-phpactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cspray","download_url":"https://codeload.github.com/cspray/annotated-container-phpactor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246314151,"owners_count":20757463,"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-12-11T16:12:30.770Z","updated_at":"2025-03-30T12:13:36.932Z","avatar_url":"https://github.com/cspray.png","language":"PHP","readme":"# Annotated Container and Phpactor\n\nA small, proof-of-concept showing a core concept behind Annotated Container... Bring Your Own Container!\n\nThis implementation is meant to show that autowiring is not required to use Annotated Container and can be integrated with whatever style of dependency injection you prefer.\n\nThis demo requires to install dev branches from Annotated Container and from a forked Phpactor:\n\n- The [Phpactor fork](https://github.com/cspray/phpactor-container) only makes changes to allow psr/container:2. The changes are made in the `task/allow-psr-container-2` branch\n- Annotated Container requires pulling from `dev-main` to allow overriding `ContainerFactory` implementations. This will be released properly as part of v2.1.\n\n## Running Demo\n\nYou should clone this repo and then run composer install.\n\n```\ngit clone git@github.com:cspray/annotated-container-phpactor.git\ncd annotated-container-phpactor \u0026\u0026 composer install\n```\n\nAfter that, from the repo's root directory you can run the demo script:\n\n```\nphp app.php\n```\n\nIf everything runs correctly you should see output similar to the following:\n\n```\nclass Cspray\\AnnotatedContainerPhpactor\\Widget#652 (1) {\n  public readonly string $id =\u003e\n  string(32) \"Annotated Container and Phpactor\"\n}\n```\n\nPlease check out the rest of this codebase for more details!","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcspray%2Fannotated-container-phpactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcspray%2Fannotated-container-phpactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcspray%2Fannotated-container-phpactor/lists"}