{"id":34955895,"url":"https://github.com/presprog/kirby-php-blueprint-loader","last_synced_at":"2025-12-26T22:02:59.559Z","repository":{"id":285751915,"uuid":"958638798","full_name":"presprog/kirby-php-blueprint-loader","owner":"presprog","description":"Dynamically loads PHP-based blueprints from your Kirby CMS site folder","archived":false,"fork":false,"pushed_at":"2025-04-02T14:02:50.000Z","size":121,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-18T16:48:24.893Z","etag":null,"topics":["developer-experience","kirby-cms","kirby-plugin","kirby4"],"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/presprog.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-01T14:19:43.000Z","updated_at":"2025-04-20T09:56:37.000Z","dependencies_parsed_at":"2025-04-02T14:13:29.329Z","dependency_job_id":null,"html_url":"https://github.com/presprog/kirby-php-blueprint-loader","commit_stats":null,"previous_names":["presprog/kirby-php-blueprint-loader"],"tags_count":1,"template":false,"template_full_name":"presprog/kirby-skeleton-plugin","purl":"pkg:github/presprog/kirby-php-blueprint-loader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presprog%2Fkirby-php-blueprint-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presprog%2Fkirby-php-blueprint-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presprog%2Fkirby-php-blueprint-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presprog%2Fkirby-php-blueprint-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/presprog","download_url":"https://codeload.github.com/presprog/kirby-php-blueprint-loader/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/presprog%2Fkirby-php-blueprint-loader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28062336,"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","status":"online","status_checked_at":"2025-12-26T02:00:06.189Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["developer-experience","kirby-cms","kirby-plugin","kirby4"],"created_at":"2025-12-26T22:02:38.750Z","updated_at":"2025-12-26T22:02:59.554Z","avatar_url":"https://github.com/presprog.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Kirby PHP Blueprint Loader Plugin](/.github/banner.png)\n\n# Kirby PHP Blueprint Loader Plugin\n\nStart using PHP blueprints in your `site` folder today!\n\n\u003e ⚡ Ready for Kirby 4!\n\n----\n\n## 🚀 How to use\n\nKirby lets you use PHP-based blueprints in plugins, e.g. to use different blueprints for different user roles. This is thoroughly described [in Sonja's fantastic cook book article](https://getkirby.com/docs/cookbook/development-deployment/programmable-blueprints). Unfortunately, this does not work with the native `blueprints` folder, usually residing in `site/blueprints`.\n\nAfter installing this plugin, you can start using PHP-based blueprints in `site/blueprints` folder, just like you would in plugins!\n\n```php\n// site/blueprints/pages/blueprint.php\n\n$user = kirby()-\u003euser();\n\n$fields = [\n    // Field config for all users\n];\n\nif ($user-\u003eisAdmin()) {\n    $fields = [\n      // Admins should have a separate set of fields\n    ];\n}\n\nreturn [\n    'title' =\u003e 'PHP-based blueprint',\n    'fields' =\u003e $fields,\n]\n```\n\n\u003e ⚠️ Any existing YAML blueprint under the same name will be overwritten.\n\n[//]: # (## ⚙️ Config)\n\n## 💻 How to install\n\nInstall this plugin via **Composer**:\n\n```bash\ncomposer require presprog/kirby-php-blueprint-loader\n```\n\nOr **download the ZIP file** from GitHub and unpack it to `site/plugins/php-blueprint-loader`\n\n## 📄 License\n\nMIT License Copyright © 2025 Present Progressive\n\n----\n\n\u003cimg src=\"./github/logo.svg?raw=true\" width=\"200\" height=\"43\"\u003e\n\nMade by [Present Progressive](https://www.presentprogressive.de) for the Kirby community.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpresprog%2Fkirby-php-blueprint-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpresprog%2Fkirby-php-blueprint-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpresprog%2Fkirby-php-blueprint-loader/lists"}