定制 fubber/mini-cms-starter 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

fubber/mini-cms-starter

最新稳定版本:v0.1.1

Composer 安装命令:

composer create-project fubber/mini-cms-starter

包简介

Default starter site for MiniCMS

README 文档

README

A starter project for Mini CMS — a template-first CMS built as an aspect on the Mini PHP framework.

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

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

_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

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

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

    <?php $this->extend(); ?>
    <?php $this->block('title', 'About'); ?>
    <?php $this->block('content'); ?>
        <?= cms_text('heading', 'Heading', 1, 'About Us', 'h1') ?>
        <?= cms_html('body', 'Body', 2, '<p>Tell your story here.</p>') ?>
    <?php $this->end(); ?>

Content is stored as files in _content/ — version it with git, edit it from the admin panel, or modify it directly on disk.

Links

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固