定制 amaury/skrivmarkup 二次开发

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

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

amaury/skrivmarkup

Composer 安装命令:

composer require amaury/skrivmarkup

包简介

Interpreter of the Skriv Markup Language. PHP implementation.

关键字:

README 文档

README

SkrivMarkup can be installed using Composer.

In your project directory, create a composer.json file:

{
    "require": {
        "amaury/wikirenderer": "dev-master",
        "amaury/skrivmarkup": "dev-master"
    }
}

Then, use Composer to fetch packages: php composer.phar install

How to use it

Once you have installed the needed packages with Composer, you can use SkrivMarkup.

<?php

require_once('vendor/autoload.php');

// creation of the renderer object
$renderer = \Skriv\Markup\Renderer::factory();

// text to HTML processing
$text = "Some **Skriv** ''enabled'' text.";
$html = $renderer->render($text);

print($html); // <p>Some <strong>Skriv</strong> <em>enabled</em> text.</p>

Documentation

The full documentation of Skriv Markup Language syntax and SkrivMarkup PHP interpreter is available on the http://markup.skriv.org website.

License

This project was created by Amaury Bouchard (amaury@amaury.net), largely based on WikiRenderer from Laurent Jouanneau.

It is placed under the terms of the GNU Lesser General Public License 2.1.

All files are provided "AS IS", without any warranty.

Copyright © 2012-2013, Amaury Bouchard

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: LGPL-2.1
  • 更新时间: 2013-01-03