定制 aymeric-wilke/scherzo-php 二次开发

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

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

aymeric-wilke/scherzo-php

Composer 安装命令:

composer require aymeric-wilke/scherzo-php

包简介

A PHP micro-framework for static websites

README 文档

README

A PHP micro-framework for static websites - Now dareboost.com 100% ready

What is Scherzo ?

Scherzo is an easy-to-use micro-framework allowing static websites to have Symfony-inspired router and views.

With Scherzo, you get :

1 : Easy-to-use router :

$routes = array(
    '/' => 'index.html.twig',
    '/your-page' => 'your-file.html.twig',
);

2 : Twig cache and templates with inheritance and variables :

$twigVars = array(
    'request' => $REQUEST,
    'whatever' => $whatever,
);

3 : And an easy-to-switch devmode, which let you see your modifications and clear the Twig cache automatically. Simply add /dev in the URL !

How to setup Scherzo ?

  1. Run composer create-project aymeric-wilke/scherzo-php yourProjectName
  2. Create a folder at the root of your project with the name "temp" and read/write access
  3. That's it, enjoy!

Why Scherzo ?

I build websites for living. For the big ones, I use Symfony, and I wanted a Symfony-like thing for the little sites.

Because I hate to have to copy-paste the menu on all pages, for example. And to redeclare css and js files in all the head of the files. So I wanted Twig to inherit my templates, and do all the cache thing.

Then, I got rid of the '/page.html' urls, transforming them in '/page' instead.

Those ideas took a few months and a few iterations to be all in one file. But now that I have been using the same version for some time now, I just putted it on GitHub so it's even easier to set up.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-04-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固