定制 skylarkelty/spark 二次开发

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

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

skylarkelty/spark

Composer 安装命令:

composer require skylarkelty/spark

包简介

A high-performance Template Parser designed to work inside a full templating engine or alongside an application.

README 文档

README

Latest Stable Version Build Status

The 300 line template parser

A high-performance Template Parser designed to work inside a full templating engine or alongside an application. Whilst Spark can be used on its own it includes a very limited set of features and is really only designed to work alongside a larger system.

Requires:

  • PHP 5.3 (or above)

Spark takes a HTML page and tokenises all tags within a specified namespace (e.g. <Spark*>) it then runs through user-specified callbacks for each token and replaces the token with the result.

The result of this project is a very simple template parser that can be hooked up to a more fully-featured templating engine.

Usage

$spark = new Spark\Core\Spark();
print $spark->run('<html><body><SparkVersion /></body></html>');

Adding a tag

$spark = new Spark\Core\Spark();

$spark->addTag("Example", function($html, $inner) {
    return "Hello World!";
});

print $spark->run('<html><body><SparkExample /></body></html>');

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Apache
  • 更新时间: 2013-08-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固