Download the PHP package alfredo-ramos/parsedown-extra-laravel without Composer

On this page you can find all versions of the php package alfredo-ramos/parsedown-extra-laravel. 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 parsedown-extra-laravel

About

A Parsedown Extra package for Laravel and Lumen.

HTML Purifier is also used to filter the HTML output, protecting your application for insecure content. Additionally, HTML5 Definitions for HTML Purifier is used to add new definitions and sanitization for HTML5.

Build Status Latest Stable Version Code Quality License

Compatibility

Version Laravel Lumen Status
0.8.x >= 5.5.x, < 6.x.x >= 5.5.x, < 6.x.x End of life
1.x.x 6.x.x 6.x.x End of life
2.x.x 7.x.x 7.x.x End of life
3.x.x 8.x.x 8.x.x End of life
4.x.x 9.x.x 9.x.x Security fixes only
5.x.x 10.x.x 10.x.x Active support

Installation

Open your composer.json file and add the package in the require object:

Then run composer update on your terminal.

Laravel

Service providers and aliases will be registered automatically since Laravel 5.5.x, thanks to the new package auto-discovery.

Lumen

In your bootstrap\app.php file and register the service provider:

Then register the facade alias:

Usage

The Markdown::parse() method is responsible to transform the Markdown syntax into HTML, its signature is the following:

Parameter Data type Default value Required Description
$text string '' Yes Markdown text
$config array, string [] No Extra configuration for HTML Purifier

Notes:

Using $config as a string

Where comments is the key of the array settings.

Using $config as an array

For all configuration options see the official HTML Purifier config docs.

Using default settings

Blade

It can be used in Blade through the Markdown facade:

The code above will print:

Helper

For your convenience, the markdown() helper function is also available. It accepts the same parameters as the facade.

Configuration

To add new or edit the default options, run the following command to make a copy of the default configuration file:


All versions of parsedown-extra-laravel with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1.0
erusev/parsedown-extra Version ^0.8.1
ezyang/htmlpurifier Version ^4.16.0
xemlock/htmlpurifier-html5 Version ^0.1.11
illuminate/config Version ^10.0.0
illuminate/support Version ^10.0.0
illuminate/filesystem Version ^10.0.0
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 alfredo-ramos/parsedown-extra-laravel contains the following files

Loading the files please wait ....