PHP code example of lithemod / import
1. Go to this page and download the library: Download lithemod/import 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/ */
lithemod / import example snippets
use Lithe\Support\import;
$result = import::file('path/to/your/testfile.php');
use Lithe\Support\import;
$importer = import::dir('path/to/directory')->exceptions(['exclude.php']);
$importer->get();
use Lithe\Support\import;
$vars = ['var1' => 'value1'];
import::with($vars)->dir('path/to/directory')->get();
$importer = import::dir('path/to/directory')->exceptions(['exclude.php']);
$importer->get();