{"id":15150763,"url":"https://github.com/pixelpluginhq/wp-container","last_synced_at":"2026-01-19T22:31:51.395Z","repository":{"id":205891262,"uuid":"714041956","full_name":"pixelpluginhq/wp-container","owner":"pixelpluginhq","description":"WordPress Container Plugin","archived":false,"fork":false,"pushed_at":"2023-11-19T00:06:38.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T08:42:08.642Z","etag":null,"topics":["composer","container","dependency-injection","php","psr","psr-11","wordpress","wordpress-plugin"],"latest_commit_sha":null,"homepage":"https://pixelplugin.com","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/pixelpluginhq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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}},"created_at":"2023-11-03T19:33:19.000Z","updated_at":"2023-11-07T22:38:47.000Z","dependencies_parsed_at":"2024-09-02T15:21:45.784Z","dependency_job_id":"79a961f5-b9c1-47d0-9bed-667d071997c8","html_url":"https://github.com/pixelpluginhq/wp-container","commit_stats":null,"previous_names":["pixelpluginhq/wp-container"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pixelpluginhq/wp-container","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelpluginhq%2Fwp-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelpluginhq%2Fwp-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelpluginhq%2Fwp-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelpluginhq%2Fwp-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelpluginhq","download_url":"https://codeload.github.com/pixelpluginhq/wp-container/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelpluginhq%2Fwp-container/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28587241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T20:45:59.482Z","status":"ssl_error","status_checked_at":"2026-01-19T20:45:41.500Z","response_time":67,"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":["composer","container","dependency-injection","php","psr","psr-11","wordpress","wordpress-plugin"],"created_at":"2024-09-26T14:41:44.989Z","updated_at":"2026-01-19T22:31:51.375Z","avatar_url":"https://github.com/pixelpluginhq.png","language":"PHP","readme":"# WordPress Container Plugin\n\n`pixelplugin/wp-container` is a WordPress plugin that provides a global PSR-compatible\ndependency container accordingly to [WordPress Container API](https://github.com/pixelpluginhq/wp-container-api). \n\n## Installation\n\n```shell\ncomposer require pixelplugin/wp-container\n```\n\nhttps://packagist.org/packages/pixelplugin/wp-container\n\n## Usage\n\n1. Install this plugin\n2. Require [pixelplugin/wp-container-api](https://github.com/pixelpluginhq/wp-container-api) via composer in your project\n3. Now you can use the Container API\n\n## Filters\n\n### wp_container\n\n```php\n/**\n * @param array $definitions container definitions.\n */\napply_filters('wp_container', $definitions);\n```\n\nThe filter should be used to configure container definitions for your code. It supports the following formats:\n\n- `ClassName::class` to simply add some class to the container, but normally it's not needed, because the container supports auto-wiring.\n- `InterfaceName::class =\u003e ClassName::class` to specify another implementation of some class/interface.\n- `ClassName::class =\u003e $instance` to bind a class name with a pre-created instance.\n- `ClassName::class =\u003e $callable` to bind a class name with some callable factory.\n\nThis filter is used on `after_setup_theme` action to create the container,\nso the container is completely available on `init` hook\n(or on the same `after_setup_theme` but with lower priority).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelpluginhq%2Fwp-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelpluginhq%2Fwp-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelpluginhq%2Fwp-container/lists"}