Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koenpunt/php-discount
PHP Markdown extension using shared Discount library
https://github.com/koenpunt/php-discount
Last synced: about 1 month ago
JSON representation
PHP Markdown extension using shared Discount library
- Host: GitHub
- URL: https://github.com/koenpunt/php-discount
- Owner: koenpunt
- License: other
- Created: 2015-10-23T19:57:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-24T21:10:20.000Z (about 9 years ago)
- Last Synced: 2023-03-11T15:42:19.897Z (over 1 year ago)
- Language: PHP
- Size: 316 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Discount PHP Extension
====The Markdown PHP Extension provides a wrapper to the [Discount markdown library](https://github.com/Orc/discount).
BUILDING ON UNIX etc.
----To compile your new extension, you will have to execute the following steps:
phpize
./configure [--with-discount]
make
sudo make installTESTING
----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:
* php-discount by Gustavo Lopes, but replaced the bundled discount library with a shared one.
[https://github.com/cataphract/php-discount]