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. presprog/kirby-php-blueprint-loader

ActiveKirby-plugin

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

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

0.1.0(1y ago)415MITPHPPHP ^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 1mo ago

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 43% of packages

Maintenance46

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

404d 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.5k535.5k352](/packages/getkirby-cms)[mzur/kirby-uniform

A versatile Kirby plugin to handle web form actions.

26068.3k13](/packages/mzur-kirby-uniform)[getkirby/kql

Kirby Query Language

15124.3k](/packages/getkirby-kql)[bnomei/kirby3-janitor

Kirby Plugin for running commands like cleaning the cache from within the Panel, PHP code or a cronjob

9339.9k2](/packages/bnomei-kirby3-janitor)[bnomei/kirby3-dotenv

Kirby Plugin for environment variables from .env

4144.1k1](/packages/bnomei-kirby3-dotenv)[tobimori/kirby-icon-field

A simple Icon field plugin for Kirby CMS

5117.1k1](/packages/tobimori-kirby-icon-field)

PHPackages © 2026

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