PHPackages                             presprog/kirby-php-blueprint-loader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. presprog/kirby-php-blueprint-loader

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

presprog/kirby-php-blueprint-loader
===================================

Load PHP blueprints not only from plugins, but your `site` folder, too!

0.1.0(1y ago)416MITPHPPHP ^8.1CI passing

Since Apr 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/presprog/kirby-php-blueprint-loader)[ Packagist](https://packagist.org/packages/presprog/kirby-php-blueprint-loader)[ RSS](/packages/presprog-kirby-php-blueprint-loader/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![Kirby PHP Blueprint Loader Plugin](/.github/banner.png)](/.github/banner.png)

Kirby PHP Blueprint Loader Plugin
=================================

[](#kirby-php-blueprint-loader-plugin)

Start using PHP blueprints in your `site` folder today!

> ⚡ Ready for Kirby 4!

---

🚀 How to use
------------

[](#-how-to-use)

Kirby 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`.

After installing this plugin, you can start using PHP-based blueprints in `site/blueprints` folder, just like you would in plugins!

```
// site/blueprints/pages/blueprint.php

$user = kirby()->user();

$fields = [
    // Field config for all users
];

if ($user->isAdmin()) {
    $fields = [
      // Admins should have a separate set of fields
    ];
}

return [
    'title' => 'PHP-based blueprint',
    'fields' => $fields,
]
```

> ⚠️ Any existing YAML blueprint under the same name will be overwritten.

💻 How to install
----------------

[](#-how-to-install)

Install this plugin via **Composer**:

```
composer require presprog/kirby-php-blueprint-loader
```

Or **download the ZIP file** from GitHub and unpack it to `site/plugins/php-blueprint-loader`

📄 License
---------

[](#-license)

MIT License Copyright © 2025 Present Progressive

---

[![](./github/logo.svg?raw=true)](./github/logo.svg?raw=true)

Made by [Present Progressive](https://www.presentprogressive.de) for the Kirby community.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance43

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

458d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb1ebdab7f2ba8b43be86588cbdcf153b0342e9364c3c890f8b8d6715fccbc3f?d=identicon)[presprog](/maintainers/presprog)

---

Top Contributors

[![bezin](https://avatars.githubusercontent.com/u/4400435?v=4)](https://github.com/bezin "bezin (9 commits)")

---

Tags

developer-experiencekirby-cmskirby-pluginkirby4kirbyBlueprint Loader

### Embed Badge

![Health badge](/badges/presprog-kirby-php-blueprint-loader/health.svg)

```
[![Health](https://phpackages.com/badges/presprog-kirby-php-blueprint-loader/health.svg)](https://phpackages.com/packages/presprog-kirby-php-blueprint-loader)
```

###  Alternatives

[getkirby/cms

The Kirby core

1.5k584.8k475](/packages/getkirby-cms)[medienbaecker/kirby-modules

Easily add modules to your pages

895.5k1](/packages/medienbaecker-kirby-modules)[belugadigital/kirby-navigation

Kirby 5 field for hierarchical menus with drag &amp; drop level indentation.

8614.7k](/packages/belugadigital-kirby-navigation)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4149.6k2](/packages/bnomei-kirby3-dotenv)[beebmx/kirby-env

Enable env variables to Kirby

2140.6k3](/packages/beebmx-kirby-env)[bnomei/kirby3-recently-modified

Kirby Section to display recently modified content pages

3210.6k](/packages/bnomei-kirby3-recently-modified)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
