2017 © Pedro Peláez
 

lib silexmarkdownserviceprovider

Silex micro-framework Markdown service provider

image

ronanguilloux/silexmarkdownserviceprovider

Silex micro-framework Markdown service provider

  • Sunday, July 28, 2013
  • by Ronan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 128 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Silex Markdown Service Provider

Silex PHP micro-framework Markdown Service Provider, (*1)

To be used with Michel Fortin's michelf/php-markdown PHP parser for Markdown and Markdown Extra derived from the original Markdown.pl by John Gruber, (*2)

Build Status Total Downloads, (*3)

Implementations examples:, (*4)

Usage

``` php <?php, (*5)

app.php

use Rg\Silex\Provider\Markdown\MarkdownServiceProvider;, (*6)

$app->register(new MarkdownServiceProvider(), array( 'md.path' => DIR .'/relative-path-to-markdown-files-directory') );, (*7)

// Retrieve .md file content $markdown = $app['md.finder']->getContent('path-to-mardown-file');, (*8)

// Parse it into html $html = $app['md.parser']->transform($markdown);, (*9)

```, (*10)

Tests

Tests need --dev option while installing dependecing using composer:, (*11)

$ composer.phar install --dev
$ wget http://pear.phpunit.de/get/phpunit.phar
$ chmod +x phpunit.phar
$ ./phpunit.phar

License

This Silex Service Provider is released under the MIT License.
See the bundled LICENSE file for details.
You can find a copy of this software here: https://github.com/ronanguilloux/SilexMarkdownServiceProvider, (*12)

The Versions

28/07 2013

dev-master

9999999-dev https://github.com/ronanguilloux/SilexMarkdownServiceProvider

Silex micro-framework Markdown service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex markdown provider

07/07 2013

1.0.0

1.0.0.0 https://github.com/ronanguilloux/SilexMarkdownServiceProvider

Silex micro-framework Markdown service provider

  Sources   Download

MIT

The Requires

 

The Development Requires

service silex markdown provider