, (*1)
domainbase
Get the base domain of a url in php., (*2)
Getting the actual domain from a url can suck, there are multiple edgecases and it isn't built into php., (*3)
With domainbase, just pass it a url like this:, (*4)
$dbase = new DomainBase();
$dbase->basename("http://images.google.co.uk/somecrap?here=adasdasd");
//this will return "google"
easy!, (*5)
Installation
require: "whackashoe/domainbase": "dev-master", (*6)
License
MIT license (for u lovely lawyery programmer types), (*7)
Pull requests appreciated; if you have any questions please open an issue, thanks., (*8)