PHP URL Manipulation Library: Manipulate and get different types of URLs

Recommend this page to a friend!
  Info   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 166 All time: 8,652 This week: 341Up
Version License PHP version Categories
php-url 1.1.6MIT/X Consortium ...5.6HTTP, PHP 5
Description Author

This class can manipulate and get different types of URLs.

It provides many types of functions that can get URLs relative to the current HTTP request and manipulate them in several ways. Currently it can:

- Get URL from the current page
- Get the base URL of the site
- Get the protocol from the current HTTP request or a given URL:
- Check if the current site is secure for being served using SSL
- Get the server name
- Get URI
- Remove subdirectories from URI if they are there
- Set parameters from the URL and return the URL without them
- Get the server port
- Add backslash if it does not exist at the end of the URL path
- Go to the previous URL
- Redirect to chosen URL
- Converts URLs into HTML links
- Get all URL parts
- Get the URL first and last item segment

  Performance   Level  
Name: Josantonius is available for providing paid consulting. Contact Josantonius .
Classes: 31 packages by
Country: Spain Spain
Age: ???
All time rank: 139830 in Spain Spain
Week rank: 611 Up18 in Spain Spain Up
Innovation award
Innovation award
Nominee: 11x

  Files folder image Files  
File Role Description
Files folder imagesrc (1 file)
Files folder imagetests (1 file)
Accessible without login Plain text file .editorconfig Data Auxiliary data
Accessible without login Plain text file .php_cs.dist Example Example script
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file CONDUCT.md Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpcs.xml Data Auxiliary data
Accessible without login Plain text file phpmd.xml Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README-ES.md Doc. Documentation
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  src  
File Role Description
  Plain text file Url.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Plain text file UrlTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:166
This week:0
All time:8,652
This week:341Up

For more information send a message to info at phpclasses dot org.