Download the PHP package christianblos/markdown2html without Composer

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

markdown2html

Converts markdown files to static html pages. See demo (I used it to document another project of mine).

Installation

Use composer to install the latest version: composer require --dev christianblos/markdown2html

Create html via command line

First, you must configure markdown2html by adding a markdown2html.config.php file to the root folder of your repository:

Now you can execute vendor/bin/markdown2html to create the html files in your destination folder

Note: If your config file is not in the root folder of your project, you can pass it as first argument: vendor/bin/markdown2html /path/to/config.php

Create html via code

Maybe you have your own command line tool and you want to use PHP code directly to generate the html files. This is no problem:

Structure of Markdown files

The navigation in the generated html is based on your folder structure. Let's assume you have the following file structure:

The number prefix (like "01.") indicates the order of navigation items. You can omit it if the order doesn't matter.

All dashes are replaced with spaces ("Via-PHP" → "Via PHP"). If you want to have dashes in the navigation, use 2 or 3 dashes:

If there is a file having the same name as a folder (like 02.Usage and 02.Usage.md), it will be the index page of this folder. If you don't have the file, the index will be created automatically and contain a sub navigation.

The content of index.md contains the text of the html index page.

In the example above the generated navigation will look like this:

Default Theme

The DefaultTheme has some additional configurations you can use:


All versions of markdown2html with dependencies

PHP Build Version
Package Version
Requires php Version ~7.3 | ^8.0
erusev/parsedown-extra Version ^0.8.1
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 christianblos/markdown2html contains the following files

Loading the files please wait ....