All these classes works in a PHP version 5.3 minus environment. They are included in the Namespace MarkdownExtended.
For clarity, the examples below are NOT written as a working PHP code when it seems not necessary. For example, rather than write echo "my_string"; we would write echo my_string or rather than var_export($data); we would write echo $data. The main code for these classes'usage is written strictly.
As a reminder, and because it's always useful, have a look at the PHP common coding standards.
As the package classes names are built following the PHP Framework Interoperability Group recommandations, we use the SplClassLoader to load package classes. The loader is included in the package but you can use your own.
require_once ".../src/SplClassLoader.php"; // if required, a copy is proposed in the package $classLoader = new SplClassLoader("MarkdownExtended", "/path/to/package/src"); $classLoader->register();
But the package is designed to use Composer and include its autoloader:
// run in a console ~$ cd path/to/package && path/to/composer.phar install ... // then include the autoloader in your scripts <?php require_once "path/to/package/vendor/autoload.php";
Infos extracted from your current package's "composer.json" manifest file.
Infos requested to the package sources repository on GitHub.com.