1. Go to this page and download the library: Download pwpf/demo 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/ */
pwpf / demo example snippets
// Full Class Name with Namespace
$router
->registerRouteOfType( RouteType::FRONTEND )
->withController( 'Example_Me\App\Controllers\Frontend\Print_Posts_Shortcode@registerShortcode' )
->withModel( 'Example_Me\App\Models\Frontend\Print_Posts_Shortcode' );
// ------------- OR --------------------
// Class Names Without specifying Namespaces explicitly. Boilerplate will automatically figure out the class based on the Route Type.
$router
->registerRouteOfType( RouteType::FRONTEND )
->withController( 'Print_Posts_Shortcode@registerShortcode' )
->withModel( 'Print_Posts_Shortcode' );