PHP code example of nathanwooten / pathfind
1. Go to this page and download the library: Download nathanwooten/pathfind 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/ */
nathanwooten / pathfind example snippets
// entry-point/index.php
( parse_url( $_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH ) );
$pathFind = $pathFind->withContains( [ 'header.php' ] );
// bootstrap.php, this is loaded before pathFind is used in the index file
. 'main' . DS . 'lib.php';