PHP code example of underpin / exporter-loader
1. Go to this page and download the library: Download underpin/exporter-loader 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/ */
underpin / exporter-loader example snippets
// Register exporter
underpin()->exporters()->add( 'exporter', [
'id' => 'example-exporter', // // Required. See Exporter::get_data
'get_items_callback' => '__return_true', // Required. See Exporter::get_items
] );
underpin()->exporters()->add('exporter-key','Namespace\To\Class');