{"id":45761900,"url":"https://github.com/jeyroik/extas-templates","last_synced_at":"2026-02-25T23:18:58.320Z","repository":{"id":56998546,"uuid":"195259623","full_name":"jeyroik/extas-templates","owner":"jeyroik","description":"Extas template package","archived":false,"fork":false,"pushed_at":"2020-04-24T09:53:31.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-09T20:12:07.223Z","etag":null,"topics":["extas","php","templates"],"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/jeyroik.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":"2019-07-04T14:47:40.000Z","updated_at":"2020-04-24T09:53:34.000Z","dependencies_parsed_at":"2022-08-21T11:40:34.596Z","dependency_job_id":null,"html_url":"https://github.com/jeyroik/extas-templates","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/jeyroik/extas-templates","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeyroik%2Fextas-templates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeyroik%2Fextas-templates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeyroik%2Fextas-templates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeyroik%2Fextas-templates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeyroik","download_url":"https://codeload.github.com/jeyroik/extas-templates/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeyroik%2Fextas-templates/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29844850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"ssl_error","status_checked_at":"2026-02-25T22:37:25.960Z","response_time":61,"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":["extas","php","templates"],"created_at":"2026-02-25T23:18:57.848Z","updated_at":"2026-02-25T23:18:58.311Z","avatar_url":"https://github.com/jeyroik.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![tests](https://github.com/jeyroik/extas-templates/workflows/PHP%20Composer/badge.svg?branch=master\u0026event=push)\n![codecov.io](https://codecov.io/gh/jeyroik/extas-templates/coverage.svg?branch=master)\n\u003ca href=\"https://github.com/phpstan/phpstan\"\u003e\u003cimg src=\"https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat\" alt=\"PHPStan Enabled\"\u003e\u003c/a\u003e \n\u003ca href=\"https://codeclimate.com/github/jeyroik/extas-templates/maintainability\"\u003e\u003cimg src=\"https://api.codeclimate.com/v1/badges/2d0f94b2ae161e58bc50/maintainability\" /\u003e\u003c/a\u003e\n\n# DEPRECATED\n\nПакет считается устаревшим. Предпочтительнее использовать [extas-samples](https://github.com/jeyroik/extas-samples \"Extas samples\").\n\n# Описание\n\nПакет с extas-совместимой сущностью \"Шаблон\".\n\n# Установка\n\n`composer require jeyroik/extas-templates:*`\n\n# Использование \n\n```php\n\nuse extas\\interfaces\\templates\\IHasTemplate;\n\nuse extas\\components\\Item;\nuse extas\\components\\repositories\\Repository;\nuse extas\\components\\templates\\THasTemplate;\n\nclass CarTemplatesRepository extends Repository\n{\n}\n\nclass Car extends Item implements IHasTemplte\n{\n    use THasTemplate;\n    \n    public function getTemplateRepository()\n    {\n        return new CarTemplatesRepository();\n    }\n}\n\n/**\n * @var $templateRepo CarTemplatesRepository\n */\n$mazda = new Template(['name' =\u003e 'mazda', 'description' =\u003e 'Mazda model']);\n$templateRepo-\u003ecreate($mazda);\n\n$car = new Car([IHasTemplate::FIELD__TEMPLATE =\u003e 'mazda']);\necho $car-\u003egetTemplate()-\u003egetDescription(); // 'Mazda model'\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeyroik%2Fextas-templates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeyroik%2Fextas-templates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeyroik%2Fextas-templates/lists"}