{"id":23774553,"url":"https://github.com/wpup/tank","last_synced_at":"2025-09-05T18:32:04.275Z","repository":{"id":35960979,"uuid":"40251085","full_name":"wpup/tank","owner":"wpup","description":":ship: WordPress Container","archived":false,"fork":false,"pushed_at":"2019-12-02T14:21:37.000Z","size":1459,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-15T05:37:42.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/wpup.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}},"created_at":"2015-08-05T14:49:03.000Z","updated_at":"2022-11-28T16:23:38.000Z","dependencies_parsed_at":"2022-09-02T12:11:29.995Z","dependency_job_id":null,"html_url":"https://github.com/wpup/tank","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Ftank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Ftank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Ftank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wpup%2Ftank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wpup","download_url":"https://codeload.github.com/wpup/tank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232052268,"owners_count":18465727,"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":"2025-01-01T06:15:45.841Z","updated_at":"2025-01-01T06:15:46.278Z","avatar_url":"https://github.com/wpup.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tank\n\n[![Build Status](https://travis-ci.org/wpup/tank.svg?branch=master)](https://travis-ci.org/wpup/tank)  [![codecov.io](http://codecov.io/github/wpup/tank/coverage.svg?branch=master)](http://codecov.io/github/wpup/tank?branch=master)\n[![License](https://img.shields.io/packagist/l/frozzare/tank.svg)](https://packagist.org/packages/frozzare/tank)\n[![No Maintenance Intended](http://unmaintained.tech/badge.svg)](http://unmaintained.tech/)\n\n\u003e Requires PHP 5.6\n\nWordPress Container.\n\n## Install\n\n```\ncomposer require frozzare/tank\n```\n\n## Container example\n\n```php\nuse Frozzare\\Tank\\Container;\n\nclass Plugin_Loader extends Container {\n\n  public function __construct() {\n    $this-\u003ebind( 'number', 12345 );\n  }\n\n}\n\n$loader = new Plugin_Loader;\n\necho $loader-\u003emake( 'number' );\n// 12345\n```\n\nCheck the [container source code](https://github.com/wpup/tank/blob/master/src/class-container.php) for methods that can be used.\n\n## Service provider example\n\n```php\nuse Frozzare\\Tank\\Container;\nuse Frozzare\\Tank\\Service_Provider;\n\nclass Example_Provider extends Service_Provider {\n\n  public function register() {\n    $this-\u003econtainer-\u003ebind( 'say', 'Hello!' );\n  }\n\n}\n\n$container = new Container;\n$provider  = new Example_Provider( $container );\n$provider-\u003eregister();\n\necho $container-\u003emake( 'say' );\n// Hello!\n```\n\n## License\n\nMIT © [Fredrik Forsmo](https://github.com/frozzare)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpup%2Ftank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwpup%2Ftank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwpup%2Ftank/lists"}