| Recommend this page to a friend! | 
|  Download | 
| Info |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2025-07-05 (-3 hours ago)  |    44% | Total: 378 | All time:  6,744 This week: 488  | |||||
| Version | License | PHP version | Categories | |||
| relative-path 1.14 | GNU Lesser Genera... | 5.2 | PHP 5, Files and Folders, Text proces... | 
| Description | Author | |||||||||||||||||||||||
| This class can clean file name paths removing redundant elements. | 
 | |||||||||||||||||||||||
Simply put, it's a tool to help clean up and collapse relative paths the same way real_path does it. Except that unlike real_path, relativePath does not look for the path on the filesystem.
|  Files (5) | 
| File | Role | Description | 
|---|---|---|
|  RelativePath.php | Class | Main Class | 
|    RelativePath.Example1.php | Example | Example and testing facility for RelativePath | 
|    composer.json | Data | Auxiliary data | 
|    readme.markdown | Doc. | Documentation | 
|    REVISION.TXT | Doc. | Documentation | 
| 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 | 
| Version Control | Reuses | Unique User Downloads | Download Rankings | ||||||||||||||||
| 100% | 2 | 
 | 
 | 
| User Ratings | ||||||||||||||||||||||||||||||
| 
 | ||||||||||||||||||||||||||||||
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.
| Other classes that need this package | 
| Class | Why it is needed | Dependency | 
|---|---|---|
| PHP Zip Merge | Clean and manage paths before adding them to the zip file | Required | 
| Zip Stream | Clean up dynamically builded paths before adding them to the zip file. | Required |