beebmx / kirby-starterkit
Beeb.mx Starter Kit for Kirby CMS
Requires
- php: ^8.4
- beebmx/kirby-blade: ^7.1
- beebmx/kirby-courier: ^2.0
- beebmx/kirby-email-plus: ^2.0
- beebmx/kirby-env: ^6.0
- beebmx/kirby-scheduler: ^2.0
- beebmx/kirby-sign: ^2.0
- getkirby/cli: ^2.1
- getkirby/cms: ^6.0
Requires (Dev)
- laravel/pint: ^1.0
- pestphp/pest: ^5.0
- spatie/ray: ^1.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A starting point for building websites with Kirby 6, with Blade templates, Vite, Tailwind CSS and a set of plugins already set up.
Requirements
- PHP 8.4+
- Composer 2
- Node.js 24+ (required by
kirbyup4 to build Panel plugins)
Installation
The easiest way to get started is Herd, using the Custom Starter Kit option, or the Laravel installer:
laravel new project-name --using=beebmx/kirby-starterkit
Or clone the repository and install the dependencies yourself:
git clone git@github.com:beebmx/kirby-starterkit.git project-name
cd project-name
cp .env.example .env
composer install
php kirby key:generate --env
npm install
npm run build
npm run app-setup
Then:
- Point your web server's document root to
public/. - In
.env, setAPP_URL.KIRBY_KEYis generated for you when the project is created with Herd, the Laravel installer orcomposer create-project; runphp kirby key:generate --envto generate a new one. Kirby uses it to sign cookies and content. - Open
/panelto create the first user. Kirby only allows this on a local environment; on a server, setKIRBY_INSTALL=truewhile you create it, then set it back tofalse.
What's included
- Kirby 6 with the Panel and a minimal site and page blueprint.
- Blade templates in
site/templates, with an<x-layout>component (app/View/Components/Layout.php). - Vite, Tailwind CSS 4 (with the typography plugin) and optional Alpine.js in
resources/. - A Panel plugin in
site/plugins/app(Vue 3 +kirbyup4). - Pest 5, Pint and Prettier (with Blade and Tailwind plugins).
Plugins:
| Package | Purpose |
|---|---|
| kirby-blade | Laravel Blade templates for Kirby |
| kirby-courier | Email messages and notifications, also used for login codes |
| kirby-email-plus | Extra email services (Mailgun, Resend) on Kirby's email API |
| kirby-env | .env support |
| kirby-scheduler | Scheduled tasks, defined in site/config/tasks.php |
| kirby-sign | Signed URLs |
Project structure
app/ PHP classes (App\ namespace), e.g. Blade components
content/ Kirby content
kirby Kirby CLI entry point (php kirby {command})
public/ Web root: index.php, built assets and media
resources/ CSS and JavaScript for the site, built by Vite
site/ Blueprints, config, plugins, snippets and templates
storage/ Accounts, cache, logs, sessions, license and compiled views
tests/ Pest tests
Configuration is split by topic in site/config/ and read from .env.
Development
| Command | Description |
|---|---|
npm run dev |
Vite dev server with hot reload |
npm run build |
Production build of the site assets |
npm run app-dev |
Panel plugin dev server with HMR |
npm run app |
Production build of the Panel plugin |
npm run app-setup |
Install the Panel plugin dependencies and build |
composer test |
Run the Pest test suite |
vendor/bin/pint |
Format PHP code |
php kirby |
List the Kirby CLI commands |
composer test and vendor/bin/pest are equivalent. Kirby's e() and dump() helpers clash with Laravel's, but kirby-blade disables them before Kirby loads, so no extra setup is needed. To keep that working, leave KIRBY_HELPER_E set to false in public/index.php.
Kirby CLI
Run Kirby CLI commands with php kirby {command}:
php kirby make:blueprint article php kirby clear:cache
The kirby file in the project root only forwards to vendor/bin/kirby, so the CLI updates with composer update. composer kirby and vendor/bin/kirby do the same thing.
Panel plugin
site/plugins/app is a ready-to-use Panel plugin. Its sources live in site/plugins/app/resources and build to index.js and index.css. The dev server creates an index.dev.js: never ship it.
Vue is provided by the Panel through an import map: import from vue, never bundle your own copy.
License
Kirby is commercial software: you can try it locally for free, but you need a license to publish a site. See the license agreement.