PHP Classes

Class Path Locator: Locate and include a file from a path list

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 47%Total: 2,015 All time: 1,951 This week: 488Up
Version License Categories
libpathlocator 1.0Free for non-comm...Tools, Files and Folders, Language
Description 

Author

This class is meant to resolve path of a [PHP class library] file to be included like in Java.

You can specify the directory paths of several [class] libraries that are available and accessible on the system.

This class can check whether a file with given name exists in any of the specified directory paths. If the file path is found it loads its file via PHP include or require statements. It's also possible only to receive the path of a given file. This can be used to load e.g. Template-files, or config-files, etc.

It can also prevent that the same file be loaded more than once.

Picture of Cornelius Bolten
Name: Cornelius Bolten <contact>
Classes: 8 packages by
Country: Germany Germany
Age: 41
All time rank: 25310 in Germany Germany
Week rank: 197 Up11 in Germany Germany Down
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.PathLocator.php Example example-script, read carefully
Plain text file lib.PathLocator.php Class main lib-class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,015
This week:0
All time:1,951
This week:488Up
 User Ratings  
 
 All time
Utility:65%StarStarStarStar
Consistency:71%StarStarStarStar
Documentation:-
Examples:71%StarStarStarStar
Tests:-
Videos:-
Overall:47%StarStarStar
Rank:3104