Download the PHP package haleks/laravel-markdown without Composer

On this page you can find all versions of the php package haleks/laravel-markdown. 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 laravel-markdown

haleks logo

Laravel Markdown
travic ci latest release code climate

Laravel Markdown integrate markdown "curly" braces inside the blade template engine, also giving the possibility of extending CommonMark.

Abandoned

Abandoned in favor of the more flexible Writedown. Which add supports for multiple markdown parsers.

Documentation

Pre-Installation

This project requires that the following packages be formerly installed.

PHP 5.5+ / HHVM 3.6+

Composer

Installation

Pulling the package

Install via composer's require command:

Install via your projects' composer.json:

Once the package is in the require section you will need to run composer's install or update command to pull in the code:

Note: The trailing -o is an optional option which is used to optimize the autoloader and is considered best practice.

Registering the package

Once the package as been successfully pulled you will need to register the package's service provider to the Laravel's app and optionally add the package's facade by modifying config/app.php:

Configuration

Laravel Markdown supports optional configuration.

You will need to pull the configuration in you app's configuration folder to make modifications to the default configuration. You can achieve this with the following artisan command:

The configuration file will be created at config/markdown.php.

Options
Enable Markdown Tags

The option tags specifies if you wish to extend blade with markdown tags. If set to true you will be able to render markdown via the "curly" braces {% %} inside your blade.php files.

Enable Views Extensions

The option views specifies if you wish to intergrate extend views extensions. If set to true you will be able to render markdown views with the following extensions: *.md, *.md.php, and *.md.blade.php.

Enable Views Extensions

The option extensions specifies which extension you wish to intergrate inside the CommonMark converter. It uses CommonMark environment's addExtension() method to load the extensions.

How To Use

Facades

You may use the facade to pass markdown and return the equivalent html. The Markdown facade has simply one method convertToHtml('markdown here').

Inside classes
Blade Views

You will need to use the unescaped echo because the converter returns html.

Tags Extensions

If the tags configuration is set to true. You may use the following "curly" brace short-cut in your *.blade.php files.

Like Blade's escaped echo {{ }} the markdown tags are also equipped with the short-cut ternary statement. If the pass variable that doesn't exists the markdown will only parse the default.

If you are using a JavaScript template engine which uses the markdown "curly" braces, just like Blade's "curly" braces, you may add a leading @ to leave it untouched for the JavaScript template engine.

Views Extensions

If the views configuration is set to true. You may use views with the following extensions: *.md, *.md.php, and *.md.blade.php. The *.md views will parse the markdown and return the html equivalent, while the *.md.php, and *.md.blade.php will parse the php first and followed by the markdown.

All the exemple above will output:

Markdown Extensions

You may extend the Markdown compiler with any extension that uses CommonMark environment addExtension() method.

Here are a few extension known to be compatible:

License

Laravel Markdown is licensed under The MIT License (MIT).


All versions of laravel-markdown with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.9
illuminate/contracts Version 5.0.*|5.1.*|5.2.*|5.3.*
illuminate/support Version 5.0.*|5.1.*|5.2.*|5.3.*
illuminate/view Version 5.0.*|5.1.*|5.2.*|5.3.*
league/commonmark Version 0.10.*|0.12.*|0.13.*|0.14.*
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 haleks/laravel-markdown contains the following files

Loading the files please wait ....