Skip to content

koenpunt/php-discount

Repository files navigation

Discount PHP Extension

The Markdown PHP Extension provides a wrapper to the Discount markdown library.

BUILDING ON UNIX etc.

To compile your new extension, you will have to execute the following steps:

phpize
./configure [--with-discount]
make
sudo make install

TESTING

You can now load the extension using a php.ini directive

extension="discount.so"

or load it at runtime using the dl() function

dl("discount.so");

The extension should now be available, you can test this using the extension_loaded() function:

if(extension_loaded("discount")){
  echo "discount loaded :)";
}else{
  echo "something is wrong :(";
}

The extension will also add its own block to the output of phpinfo();

CREDITS

Implementation details have been taken from:

About

PHP Markdown extension using shared Discount library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published