Feels like home
Use PHP and HTML you already know, with Markdown when you just want to write.
Working with PHPTHE STATIC SITE GENERATOR, WRITTEN IN PHP
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.
<?php
// A little PHP goes a long way.
$message = 'Hello, static world.';
?>
<h1><?= $message ?></h1>
<p>Made with a little PHP.</p> Made with a little PHP.
LESS FRICTION. MORE CREATING.
Your own files, your own workflow, your own website. A small tool with plenty of room for your ideas.
Use PHP and HTML you already know, with Markdown when you just want to write.
Working with PHPReusable layouts, metadata and functional blocks give your site structure without getting in the way.
Explore the featuresGenerate static files, with friendly URLs and optional minification. Then deploy them to your server.
Make it your ownFROM IDEA TO INDEX.HTML
No mystery. Just source files becoming a website.
Read the getting started guidesrc/Add your pages, layouts and assets to the source directory.
phpStaticPHP processes your source, fetches remote content and generates the site.
public/Upload the generated files to your host. Keep editing in src; public is rebuilt each time.
A PERSONAL PROJECT. AN OPEN INVITATION.
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.
contact [at] staticphp [dot] comNotes from the project