PHP Classes

Relative Path: Clean file name paths removing redundant elements

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2024-01-09 (9 months ago) RSS 2.0 feedStarStarStar 44%Total: 378 All time: 6,743 This week: 488Up
Version License PHP version Categories
relative-path 1.12GNU Lesser Genera...5.2PHP 5, Files and Folders, Text proces...
Description 

Author

This class can clean file name paths removing redundant elements.

It can take a string with a file or directory path and remove redundant path elements like /./ or // sequences or leading ../ elements from absolute paths.

Picture of Asbjorn Grandt
Name: Asbjorn Grandt <contact>
Classes: 10 packages by
Country: Denmark Denmark
Age: 53
All time rank: 1711 in Denmark Denmark
Week rank: 44 Up1 in Denmark Denmark Equal
Innovation award
Innovation award
Nominee: 4x

Details

Relative Path

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 folder image Files (5)  
File Role Description
Plain text file RelativePath.php Class Main Class
Accessible without login Plain text file RelativePath.Example1.php Example Example and testing facility for RelativePath
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file readme.markdown Doc. Documentation
Accessible without login Plain text file 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 Install with Composer
 Version Control Reuses Unique User Downloads Download Rankings  
 100%2
Total:378
This week:0
All time:6,743
This week:488Up
 User Ratings  
 
 All time
Utility:66%StarStarStarStar
Consistency:58%StarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:44%StarStarStar
Rank:3429