| Recommend this page to a friend! | 
| Info | Reputation | Support forum | Blog | Links | 
| Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
| 2025-07-05 (-3 hours ago)  | 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.
| File | Role | Description | 
|---|---|---|
| Class | Main Class | |
| Example | Example and testing facility for RelativePath | |
| Data | Auxiliary data | |
| Doc. | Documentation | |
| 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. | 
| 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.
| 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 |