1. Go to this page and download the library: Download mosaicora/plugin-core-php library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mosaicora / plugin-core-php example snippets
use Mosaicora\PluginCore\OgImageUrl;
use Mosaicora\PluginCore\OgImageUrlOptions;
$imageUrl = OgImageUrl::build(new OgImageUrlOptions(
siteId: '321cac22d2103fb1660c50bd',
pageHref: 'https://example.com/products/view',
));