THE STATIC SITE GENERATOR, WRITTEN IN PHP

Your PHP.
Your ideas.
A simpler website.

Turn the code you love into a fast, static website. Write PHP, HTML or Markdown. Let StaticPHP take it from there.

Made by David Hunter. Built for the joy of making things.

hello, static world.PHP
src/index.php
<?php
// A little PHP goes a long way.
$message = 'Hello, static world.';
?>

<h1><?= $message ?></h1>
<p>Made with a little PHP.</p>
$ php StaticPHP-Launcher.php
public/index.htmlSTATIC HTML

Hello, static world.

Made with a little PHP.

PHP in. Static files out. That's it.
FAMILIAR INGREDIENTS. FRESH POSSIBILITIES.
PHP + HTML + Markdown =Your next website

LESS FRICTION. MORE CREATING.

Keep the good parts.
Make the rest static.

Your own files, your own workflow, your own website. A small tool with plenty of room for your ideas.

Feels like home

Use PHP and HTML you already know, with Markdown when you just want to write.

Working with PHP

Simple, with superpowers

Reusable layouts, metadata and functional blocks give your site structure without getting in the way.

Explore the features

Ready for the web

Generate static files, with friendly URLs and optional minification. Then deploy them to your server.

Make it your own

FROM IDEA TO INDEX.HTML

A refreshingly
short workflow.

No mystery. Just source files becoming a website.

Read the getting started guide
src/

Make something yours

Add your pages, layouts and assets to the source directory.

php

Run the launcher

StaticPHP processes your source, fetches remote content and generates the site.

public/

Put it out into the world

Upload the generated files to your host. Keep editing in src; public is rebuilt each time.

A PERSONAL PROJECT. AN OPEN INVITATION.

Hi, I'm David.

StaticPHP is my static site generator, and this website is built with it. Even the documentation starts as remote Markdown and becomes part of the site.

Have a feature idea, spotted a bug, or built something with StaticPHP? I'd love to hear from you.

Notes from the project