primakurzy / shortcode
For Educational Purposes Only
v1.0
2022-06-01 07:32 UTC
Requires
- thunderer/shortcode: >=0.7
README
Library Is For Educational Purposes Only
This library is only helper for great library https://github.com/thunderer/Shortcode
1. Installation:
The easiest way to install the library is using Composer:
composer require primakurzy/shortcode
Or simply download the PHP package from the src/ directory in this repository.
2. Loading:
If you're using Composer use the following include/require statement
<?php require "vendor/autoload.php"; // ...
otherwise:
<?php require "path/to/src/Processor.php"; // ...
3. A Simple Example:
// call library function echo primakurzy\Shortcode\Processor::process('folder/with/shortcodes', 'random number: [rand from=5 to=10]');