PHP code example of germania-kg / namespaced-filefinder

1. Go to this page and download the library: Download germania-kg/namespaced-filefinder 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/ */

    

germania-kg / namespaced-filefinder example snippets




use Germania\NamespacedFileFinder\NamespacedFileFinder;  

$finder = new NamespacedFileFinder("/path/configs", [
  "@custom" => "/path/to/custom/configs"
]);

$found = $finder("app.yaml");
$found = $finder("@custom/app.yaml");