mattandrews/fruitmachine 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mattandrews/fruitmachine

Composer 安装命令:

composer require mattandrews/fruitmachine

包简介

A PHP port of @FTLabs's FruitMachine

README 文档

README

PHP port of @FTLabs' fruitmachine, a lightweight component layout engine for client and server.

FruitMachine is designed to build rich interactive layouts from modular, reusable components. It's light and unopinionated so that it can be applied to almost any layout problem. FruitMachine is currently powering the FT Web App.

// Define a module
class Apple extends \FruitMachine\AbstractModule {

  public static $name = 'apple';

  public function template() {
    return 'hello'
  }

}

$fm = \FruitMachine\Singleton::getInstance();

// Define a module
$fm->define('\Apple');

// Create a module
$apple = $fm->create('apple');

// Render it
echo $apple->toHTML();
//=> <div class="apple">hello</div>

Installation

To install from packagist either add mattandrews/fruitmachine to your project's composer.json file or enter the following on the command line:-

composer require mattandrews/fruitmachine

Compatability

Unit tests are run on each build against PHP 5.3, 5.4 and 5.5.

Author

Credits and collaboration

The lead developer of FruitMachine-php is Matt Andrews at FT Labs. All open source code released by FT Labs is licenced under the MIT licence. We welcome comments, feedback and suggestions. Please feel free to raise an issue or pull request.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固