承接 alexxwiz/tiny-ssi 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

alexxwiz/tiny-ssi

最新稳定版本:v1.0.1

Composer 安装命令:

composer require alexxwiz/tiny-ssi

包简介

Tiny SSI - very small Server Side Includes parser

关键字:

README 文档

README

A minimal implementation of Apache SSI (server-side includes) for PHP 5.4+

Usage

Currently only supports doing includes, set var and echo var.

 <!--#include virtual="header.html" -->

    <div class="container">
        <h1>title</h1>
        <p class="lead">
          contents
        </p>
    </div>
 <!--#include virtual="footer.html" -->

expecting that 'header.html' and 'footer.html' are in the same folder as the above html file, you can then do:

require_once('tiny_ssi.php');

$parser = new TinySSI;
echo $parser->parse('/test/ssi_test_body.html');

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-11-03