Download the PHP package nazar-pc/php-markdown-next without Composer

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

PHP Markdown Next

PHP Markdown Next

by Nazar Mokrynskyi [email protected]

based on PHP Markdown Extra by Michel Fortin http://michelf.ca/

with changes from PHP Markdown Extra Extended by Egil Hansen [email protected]

based on original Markdown by John Gruber http://daringfireball.net/

Introduction

This is a library package that includes the PHP Markdown Next parser, which is based on PHP Markdown Extra and PHP Markdown Extra Extended parsers.

Markdown is a text-to-HTML conversion tool for web writers. Markdown allows you to write using an easy-to-read, easy-to-write plain text format, then convert it to structurally valid XHTML (or HTML).

"Markdown" is two things: a plain text markup syntax, and a software tool, written in Perl, that converts the plain text markup to HTML. PHP Markdown is a port to PHP of the original Markdown program by John Gruber.

Full documentation of Markdown's syntax is available on John's Markdown page: http://daringfireball.net/projects/markdown/ PHP Markdown Extra syntax is described by Michel Fortin: http://michelf.ca/projects/php-markdown/extra/ Changes in PHP Markdown Extra Extended are described in corresponding repository by Egil Hansen: https://github.com/egil/php-markdown-extra-extended

Requirements

This library package requires PHP 5.4 or later.

Usage

In order to use this library, you can use composer:

{
    "require": {
        "nazar-pc/php-markdown-next": "*"
    }
}

Or include file src/nazarpc/MarkdownNext.php manually (see example/index.php file).

Then you can use class:

use nazarpc\MarkdownNext;
$my_html = MarkdownNext::defaultTransform($my_text);

Static method defaultTransform is used in example above, but if you want to customize default settings - you can create instance of MarkdownNext class:

use nazarpc\MarkdownNext;
$parser = new MarkdownNext;
$parser->fn_id_prefix = "post22-";
$my_html = $parser->transform($my_text);

To learn more, see the full list of Markdown Extra configuration variables and Markdown configuration variables.

Public API and Versioning Policy

Version numbers are of the form major.minor.patch.

The public API of PHP Markdown Next consist of the parser class MarkdownNext, its constructor, the transform and defaultTransform methods and their configuration variables. The public API is stable for a given major version number. It might get additions when the minor version number increments.

Protected members are not considered public API. This is unconventional and deserves an explanation. Incrementing the major version number every time the underlying implementation of something changes is going to give nonessential version numbers for the vast majority of people who just use the parser. Protected members are meant to create parser subclasses that behave in different ways. Very few people create parser subclasses. I don't want to discourage it by making everything private, but at the same time I can't guarantee any stable hook between versions if you use protected members.

Syntax changes will increment the minor number for new features, and the patch number for small corrections. A new feature is something that needs a change in the syntax documentation.

Bugs and Contributions

Reporting of issues and creating of pull requests are highly appreciated!

Also feel free to contact me via email [email protected]

Please include with your bug report: (1) the example of input; (2) the output you expected; (3) the output PHP Markdown Next actually produced.

Versions History

PHP Markdown Next 2.0.0 (10 Nov 2013):

This is first release of Next series.

PHP Markdown Lib 1.3 (11 Apr 2013):

This is the first release of PHP Markdown Lib. This package requires PHP version 4.3 or later and is designed to work with PSR-0 autoloading and, optionally with Composer. Here is a list of the changes since PHP Markdown Extra 1.2.6:

Copyright and License

BSD 3-Clause License

See license.md file for details


All versions of php-markdown-next with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.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 nazar-pc/php-markdown-next contains the following files

Loading the files please wait ....