PHPackages                             fubber/mini-cms-starter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. fubber/mini-cms-starter

ActiveProject[Utility &amp; Helpers](/categories/utility)

fubber/mini-cms-starter
=======================

Default starter site for MiniCMS

v0.1.0(today)00MITPHP

Since Jun 9Pushed todayCompare

[ Source](https://github.com/frodeborli/mini-cms-starter)[ Packagist](https://packagist.org/packages/fubber/mini-cms-starter)[ RSS](/packages/fubber-mini-cms-starter/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Mini CMS Starter
================

[](#mini-cms-starter)

A starter project for [Mini CMS](https://github.com/frodeborli/fubber-mini-cms) — a template-first CMS built as an aspect on the [Mini PHP framework](https://github.com/frodeborli/fubber-mini).

Quick start
-----------

[](#quick-start)

```
composer create-project fubber/mini-cms-starter my-site
cd my-site
php -S localhost:8899 -t html html/index.php
```

Open `http://localhost:8899` in your browser. Log in at `/login` to access the admin panel and inline editing.

What's included
---------------

[](#whats-included)

This starter ships a documentation site that doubles as a working example. It demonstrates:

- Page routing via `_content/routes.php`
- Template inheritance with `$this->extend()` and `$this->block()`
- Inline-editable content with `cms_text()`, `cms_html()`, and `cms_image()`
- Reusable partials with `cms_partial()`
- Context-aware content storage on the filesystem

Project structure
-----------------

[](#project-structure)

```
_content/       Routes, models, site config, and content files (JSON/HTML)
_views/         PHP templates — override any CMS default file-by-file
_static/        Public static assets (CSS, images)
_routes/        Custom route handlers (filesystem-based routing)
html/           Web server document root
bootstrap.php   App bootstrap (loaded via Composer autoload)

```

Making a new page
-----------------

[](#making-a-new-page)

1. Add a route in `_content/routes.php`:

    ```
    '/about' => new Page('pages/about', title: 'About'),
    ```
2. Create the view at `_views/pages/about.php`:

    ```
