{"id":19325409,"url":"https://github.com/krypt0nn/php-blueprints","last_synced_at":"2025-07-11T22:04:05.542Z","repository":{"id":57009444,"uuid":"397518711","full_name":"krypt0nn/php-blueprints","owner":"krypt0nn","description":"PHP blueprints","archived":false,"fork":false,"pushed_at":"2021-08-18T08:06:52.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-06T06:43:35.579Z","etag":null,"topics":["php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krypt0nn.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":"2021-08-18T07:55:04.000Z","updated_at":"2021-08-19T01:39:43.000Z","dependencies_parsed_at":"2022-08-21T12:40:41.632Z","dependency_job_id":null,"html_url":"https://github.com/krypt0nn/php-blueprints","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fphp-blueprints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fphp-blueprints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fphp-blueprints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krypt0nn%2Fphp-blueprints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krypt0nn","download_url":"https://codeload.github.com/krypt0nn/php-blueprints/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240427326,"owners_count":19799471,"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":["php"],"created_at":"2024-11-10T02:09:58.938Z","updated_at":"2025-02-24T06:16:55.526Z","avatar_url":"https://github.com/krypt0nn.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🚀 php-blueprints\u003c/h1\u003e\n\n**php-blueprints** is a library that can make your life easier\n\nThis library provides functionality to create html/php blueprints and use them in your other files\n\n## Installation\n\n```\ncomposer require krypt0nn/php-blueprints\n```\n\n## Example\n\nFile `input/blank.php`\n\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003ctitle\u003eExample blueprint\u003c/title\u003e\n    \u003c/head\u003e\n\n    \u003cbody\u003e\n        @section(body)\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\nFile `input/index.php`\n\n```html\n@include(blank)\n\n@section(body)\n    \u003cp\u003eHello, World!\u003c/p\u003e\n    \u003cp\u003eHello, World!\u003c/p\u003e\n    \u003cp\u003eHello, World!\u003c/p\u003e\n    \u003cp\u003eHello, World!\u003c/p\u003e\n@end\n```\n\nRun this code\n\n```php\n\u003c?php\n\nrequire 'vendor/autoload.php';\n\nuse Blueprints\\Blueprints;\n\nBlueprints::processDir (__DIR__ .'/input', __DIR__ .'/output');\n```\n\nAnd in folder `output` will appear file `index.php` with this content:\n\n```html\n\u003chtml\u003e\n    \u003chead\u003e\n        \u003ctitle\u003eExample blueprint\u003c/title\u003e\n    \u003c/head\u003e\n\n    \u003cbody\u003e\n        \u003c!-- @section(body) --\u003e\n        \u003cp\u003eHello, World!\u003c/p\u003e\n        \u003cp\u003eHello, World!\u003c/p\u003e\n        \u003cp\u003eHello, World!\u003c/p\u003e\n        \u003cp\u003eHello, World!\u003c/p\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\nYou can see this example in [test](/test) folder\n\n\u003cbr\u003e\n\nAuthor: [Nikita Podvirnyy](https://vk.com/technomindlp)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fphp-blueprints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrypt0nn%2Fphp-blueprints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrypt0nn%2Fphp-blueprints/lists"}