Home
Softono

Kirby Headless Starter

Open source MIT PHP
75
Stars
6
Forks
0
Issues
2
Watchers
7 months
Last Commit

 About Kirby Headless Starter

🦭 Headless-first Kirby starter with bearer token authentication and KQL utilities

Platforms

Web Self-hosted

Languages

PHP

Need Help Installing Kirby Headless Starter?

We provide expert installation service for this software. Our team will install, configure, and secure Kirby Headless Starter on your server. plans start at just $30.

Kirby Headless Starter

View on GitHub

Kirby Headless Starter

[!TIP] Send a request with a Authorization: Bearer test header to the live playground for an example response.

This starter kit provides a minimal setup for a headless Kirby site. It allows you to fetch JSON-encoded data from your Kirby site using either KQL or Kirby's default template system. Under the hood, it uses the Kirby Headless Plugin to provide a headless API.

This project works well with Nuxt KQL.

Example Projects

Key Features

Setup

[!TIP] 📖 Read the documentation

Kirby-related dependencies are managed via Composer and located in the vendor directory. To install them, run:

composer install

Environment Variables

Duplicate the .env.development.example as .env and adjust its values:

cp .env.development.example .env

[!NOTE] Make sure to set the correct requesting origin instead of the wildcard KIRBY_HEADLESS_ALLOW_ORIGIN=* for your deployment.

Deployment

[!NOTE] See ploi-deploy.sh for exemplary deployment instructions.

Some hosting environments require uncommenting RewriteBase / in .htaccess to make site links work.

License

MIT License © 2022-PRESENT Johann Schopplich