Download the PHP package yiipress/markdown without Composer

On this page you can find all versions of the php package yiipress/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 Extension for PHP

yiipress/markdown is a native PHP extension for rendering Markdown to HTML with bundled MD4C.

[!WARNING] This package is deprecated in favor of https://github.com/iliaal/mdparser/.

Requirements

Prebuilt Windows DLLs are attached to GitHub releases.

Install

Install the extension with PIE:

Then require the extension from applications that use it:

Usage

Create a renderer once, then call render() for each Markdown string:

MarkdownOptions is immutable. Pass options to the constructor to choose the Markdown features accepted by the parser and the HTML renderer flags used for output.

Defaults enable common extensions:

Disable raw HTML by turning off both HTML options:

Optional MD4C extensions can be enabled individually:

MD4C Constants

Most applications should use MarkdownOptions. The extension also exposes MD4C's raw constants when you need to inspect the generated parser bitmask, store low-level settings, or pass HTML renderer flags directly.

Use HtmlFlag values with MarkdownOptions::$rendererFlags:

Use Flag values when you need to inspect or compare parser settings:

Use Dialect values when interoperating with code that expects MD4C's dialect bitmasks:

Scope

Version 1 is Markdown-to-HTML only. It intentionally does not expose a PHP callback or event wrapper around MD4C's lower-level md_parse() API.

Compared with mdparser, this package prioritizes MD4C feature coverage and medium/large input performance. It does not add mdparser-only features such as smart punctuation, heading anchors, source positions, nofollow links, or tag filtering.

Development

Run the PHPT suite in Docker:

Show the currently bundled MD4C revision:

Check whether the configured upstream MD4C ref has changed:

Update the vendored MD4C files:

By default, MD4C targets use upstream master. Pass MD4C_REF to check or upgrade to another branch, tag, or commit:

Bundled MD4C

This package vendors MD4C source code under third_party/md4c/. MD4C is licensed under the MIT license; its license notice is included at third_party/md4c/LICENSE.md.

Credits

This extension was inspired by eklausme/php-md4c, an earlier PHP extension wrapper for MD4C.


All versions of markdown with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
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 yiipress/markdown contains the following files

Loading the files please wait ...