amaury / skrivmarkup
Interpreter of the Skriv Markup Language. PHP implementation.
Installs: 2 439
Dependents: 1
Suggesters: 0
Security: 0
Stars: 25
Watchers: 4
Forks: 3
Open Issues: 7
Requires
- php: >=5.3
- amaury/wikirenderer: dev-master
This package is not auto-updated.
Last update: 2024-11-09 15:11:27 UTC
README
SkrivMarkup can be installed using Composer.
In your project directory, create a file:
{ "require": { "amaury/wikirenderer": "dev-master", "amaury/skrivmarkup": "dev-master" } }
Then, use Composer to fetch packages:
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