Home
What is Kiss?
Kiss is a static site generator written in PHP. It features a simple yet flexible routing system, supports YAML, JSON, PHP, XML, INI and MD as data sources, and uses Twig as its templating engine.
Quick start
composer global require amund/kiss-php
kiss init my-site
cd my-site
kiss build
Features
- Easy installation - Composer (1 line) or Phar (1 file)
- No database - Everything is stored in flat files, easy to git
- Multi-source - Supports YAML/JSON/PHP/XML/INI/MD as data sources
- Static/Dynamic - The generated site is static, but the PHP data sources can be dynamic
- High-performance - All data is read and processed in PHP to be cached
- Fast-Cache - By default, the system cache directory is used; if it is tmpfs in RAM, performance is affected
- Twig - No surprises here—there must be very few PHP developers who have never touched a Twig file
Workflow
graph TD
A[kiss.yml] --> B[Config]
B --> C[Build]
C --> D[copy dir]
D --> I[Static files]
C --> E[route dir]
E --> F[items + data]
F --> G[Twig render]
G --> H[HTML pages]
H --> J[Route manifest]
J --> K[Clean stale files]
License
MIT