primakurzy/shortcode

For Educational Purposes Only

v1.0 2022-06-01 07:32 UTC

This package is auto-updated.

Last update: 2024-03-29 04:46:36 UTC


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]');