Quickstart

Install PhlatPage, create your first account, and serve your first page. Cool

Requirements

  • PHP 8.4+
  • Composer

We also offer a per-configured docker build.

Install

git clone <repo-url> my-site
cd my-site
composer install
npm install
npm run build

Start the server

docker compose up -d

The site is served at http://localhost:10000.

Create your first account

docker compose exec app php phlat/addons/cli/phlat user:create adam --role=admin

The password is prompted for. Sign in at /admin/login.

Create your first page

In the admin, add a page and pick a view. Or from the terminal:

docker compose exec app php phlat/addons/cli/phlat make:page about --title=About --publish

The page is a folder at data/pages/about/, served at /about. A new page is unpublished until you publish it, which --publish does here; in the admin, tick Published on its Settings tab. Its view picks the template under site/views/.