1. Go to this page and download the library: Download yakisova41/moduleloader 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/ */
yakisova41 / moduleloader example snippets
use Yakisova41\ModuleLoader\Loader;
$module = Loader::import('./module.php');
$module(); //=>Hello World!!
use Yakisova41\ModuleLoader\Loader;
Loader::exportDefault(function(){
echo "Hello World!!";
});