Since 2022 · Open source · MIT

HydePHP

The static site generator for PHP.

The power of Laravel meets the simplicity of Markdown.

Transform your ideas into blazing-fast websites. Combine the power of Laravel's ecosystem with the simplicity of Markdown. Your next project starts here.

$ composer create-project hyde/hyde
Read the documentation

DRAG THE SEAM TO BUILD

The transformation

Write. Build. Vanish from the server bill.

The whole workflow is three moves. What comes out is plain HTML you can host anywhere, from a five-dollar VPS to a free static hosting provider.

Write

Markdown for content, Blade when you want full control. Front matter for any metadata.

Terminal
// Or create plain .md, your call
$ php hyde make:post "Hello World"

Build

One command compiles everything: pages, posts, docs, navigation, RSS, sitemap.

Terminal
$ php hyde serve // Preview live
$ php hyde build // Website build

Ship

The output is a folder of static files. No PHP on the server, nothing to patch at 2 am.

_site/
├── posts/
├── index.html
└── feed.xml

Four kinds of pages

A page type for every kind of writing.

The directory a file lives in decides what it becomes. Mix and choose between them freely. Hyde works out the routing, the navigation, and the layouts.

_pages/*.md

Markdown pages

The shortest path to a page. Write the content, keep the file, get static HTML.

  • No config to write
  • Front matter optional
  • Auto-added to navigation

_pages/*.blade.php

Blade pages

For the pages Markdown can't carry. Full control over the markup, with PHP at hand.

  • The full Blade syntax
  • Components and layouts
  • Sits beside your Markdown

_posts/*.md

Blog posts

A blog that assembles itself. Drop the file in, and the feeds follow along.

  • Authors, dates, categories
  • Generated post feed
  • RSS out of the box

_docs/*.md

Documentation

A whole documentation site from a folder of Markdown. It doesn't get better than this.

  • Sidebar built for you
  • Search and page tables
  • Torchlight highlighting

What's in the box

Familiar to Artisans. Gentle to everyone else.

Hyde is built on Laravel Zero. If you know Artisan and Blade you already know Hyde, and if you don't, Markdown is all you need to get a site out the door.

Two dialects, one site

Mix Markdown pages and Blade views freely in the same project. Sprinkle in YAML front matter when a page needs metadata, skip it when it doesn't. Hyde's magic does its best to configure your site for you.

---
navigation:
  priority: 1
---

A frontend you don't have to build

Ships with a full Tailwind frontend, responsive navigation, dark mode, and customizable Blade components. Publish the templates when you want to make it yours. Or easily toss them in favour of your own design system.

php hyde publish views

Documentation sites in minutes

Drop Markdown files in a folder and get a searchable docs site with an automatically built sidebar. The HydePHP documentation site is powered by HydePHP and we wouldn't want it any other way.

_docs/
├── index.md
└── getting-started.md

Everything is versionable

No database means your whole site lives in Git. Content, config, and templates travel together, and every deploy is reproducible from a single commit.

git push # That's the deploy
253k
GitHub clones
34k
Packagist installs
484
GitHub stars
MIT
Licensed, forever
"I'm not a PHP developer and I can barely write a function in this language, but the project actually delivers on what it promises. Docs: 10/10. Project: 10/10."
@peteralexbizjak on X

Begin the experiment

Your next site is one command away.

$ composer create-project hyde/hyde
Quickstart guide