PHP Classes

Only Domain: Extracting domain from an URL

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (1)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 35%Total: 653 This week: 1All time: 4,916 This week: 560Up
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
Age: 38
All time rank: 293510 in Saudi Arabia Saudi Arabia
Week rank: 411 Up7 in Saudi Arabia Saudi Arabia Up

Screenshots  
  • demo
  Files folder image Files  
File Role Description
Plain text file http_parser Class Main PHP Class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:653
This week:1
All time:4,916
This week:560Up
User Ratings User Comments (1)
 All time
Utility:58%StarStarStar
Consistency:62%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:35%StarStar
Rank:4064
 
Very simple but very useful.
15 years ago (m203cb)
60%StarStarStarStar