Download the PHP package scribe/markdown-bundle without Composer

On this page you can find all versions of the php package scribe/markdown-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package markdown-bundle

KwattroMarkdownBundle

This bundle lets you easily make use of the markdown parser inside your Symfony applications.

See it in action: http://www.frenchycode.com/billets/3/voir/test_du_kwattromarkdownbundle Status

This bundle is in development phase. Do not hesitate to contribute.

Build Status

Todo's:

Open Source Community

This bundle wraps the work of amazing developers:

Sundown is based on the original Upskirt parser by Natacha Porté, with many additions by Vicent Marti (@tanoku) and contributions from the following authors:

Ben Noordhuis, Bruno Michel, Joseph Koshy, Krzysztof Kowalczyk, Samuel Bronson,
Shuhei Tanuma

php-sundown is a php wrapper of the Sundown project made by [chobie] (https://github.com/chobie/php-sundown)

Installation

Install sundown and php-sundown on your server

git clone https://github.com/chobie/php-sundown.git php-sundown -b development
cd php-sundown
# this command will fetch submodule and copy neccesary files to src dir and compile it.
rake submodule compile
sudo rake install

# enable the sundown extension by adding the following line to your php.ini
extension=sundown.so

Download the KwattroMarkdownBundle

Add the following to your deps file:

[KwattroMarkdownBundle]
    git=http://github.com/kwattro/KwattroMarkdownBundle.git
    target=/bundles/Kwattro/MarkdownBundle

And run the following command:

php bin/vendors install

Register the bundle

Add the Kwattro namespace to the autoloader:

# /app/autoload.php
$loader->registerNamespaces(array(
//...
'Kwattro' => __DIR__.'/../vendor/bundles',
));

And finally, register the bundle in your AppKernel

# /app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
    //...
    new Kwattro\MarkdownBundle\KwattroMarkdownBundle(),
    );
}

How to use it

In your twig templates

You can easily use the markdown parser in your Twig templates:

{{ body | markdown }}

In your controllers by using the kwattro_markdown service name:

$markdown = $this->container->get('kwattro_markdown');
$string = $body; //Some string to transform
$output = $markdown->render($string);

You can custom the extensions and the render to use on the fly. The second array parameter is for the flags.

In your controllers :

`

In your templates

`

Syntax

For more information about the Markdown syntax, visit the markdown author [website] (http://daringfireball.net/projects/markdown/)

Configuration Reference

You can configure the bundle simply in the config.yml file:

`


All versions of markdown-bundle with dependencies

PHP Build Version
Package Version
Requires symfony/framework-bundle Version 2.*
symfony/twig-bundle Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package scribe/markdown-bundle contains the following files

Loading the files please wait ....