Download the PHP package vtalbot/markdown without Composer

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

Markdown Compiler for Laravel

Installation

For Laravel 4

  1. Run composer require vtalbot/markdown:1.5
  2. Run php artisan config:publish vtalbot/markdown
  3. Then edit config.php in app/config/packages/vtalbot/markdown to your needs.
  4. Add 'VTalbot\Markdown\MarkdownServiceProvider', to providers in app/config/app.php and 'Markdown' => 'VTalbot\Markdown\Facades\Markdown', to aliases in app/config/app.php

For Laravel 5+

  1. Run composer require vtalbot/markdown:2.0
  2. Run php artisan vendor:publish --provider=“VTalbot\Markdown\MarkdownServiceProvider”
  3. Then edit markdown.php in your config directory to your needs.
  4. Add VTalbot\Markdown\MarkdownServiceProvider::class to providers in config/app.php and 'Markdown' => VTalbot\Markdown\Facades\Markdown::class to aliases in config/app.php

Usage

http://domain.name/test.md

If test.md doesn't exists in the public directory, it will search for test.md in app/markdown directory. If found, compile it if needed and return the result.

Or, you can compile a simple string:

To handle markdown file not found:

Configuration

Key Default value Description
paths array('/markdown') Directory where to find the markdown files.
routes array('',) Routes prefixes.
extensions array('markdown','md') Extensions used to set routes.
add_routes true Enable the creation of routes.
empty_element_suffix ' />' Suffix for empty element (br, hr).
tab_width 4 Tab character width.
no_markup false Prevent HTML tags to be passed to output.
no_entities false Convert entities like \&lt\; to \&amp\;.
predef_urls array() Add reference for urls. array('ref' => '//goo.gl'): [google][ref]
predef_titles array() Same as predef_urls.
use_extra true Use Markdown with extra, eg.: fenced code block.
fn_id_prefix '' Prefix for ID attributes generated by footnotes.
fn_link_title '' Title for footnotes links.
fn_backlink_title '' Same as fn_link_title.
fn_link_class 'footnote-ref' CSS class for footnotes links and backlinks.
fn_backlink_class 'footnote-backref' Same as fn_link_class.
code_class_prefix '' Prepend CSS class to fenced code block.
code_attr_on_pre false Put attributes on pre instead of code.
predef_abbr array() Create predefine abbreviations.

For more information on the Markdown configuration, you may refer to http://michelf.ca/projects/php-markdown/configuration .

Changelog

2.0

1.5


All versions of markdown with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^5||^6||^7||^8
michelf/php-markdown Version ^1.8
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 vtalbot/markdown contains the following files

Loading the files please wait ....