PHP Classes

Only Domain: Extracting domain from an URL

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 35%Total: 653 All time: 4,920 This week: 673Up
Version License PHP version Categories
http_parser 0.1GNU General Publi...4Text processing
Description 

Author

This is a very simple class that can be used to extract the domain of an URL.

It parses the URL and returns the host domain. If the host starts with www. , that prefix is removed.

Picture of Mohammed Almarwai
Name: Mohammed Almarwai <contact>
Classes: 1 package by
Country: Saudi Arabia Saudi Arabia

Screenshots (1)  
  • demo
  Files folder image Files (2)  
File Role Description
Plain text file http_parser Class Main PHP 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:653
This week:0
All time:4,920
This week:673Up
User Ratings User Comments (1)
 All time
Utility:58%StarStarStar
Consistency:62%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:35%StarStar
Rank:4146
 
Very simple but very useful.
16 years ago (m203cb)
60%StarStarStarStar