2017 © Pedro Peláez
 

library domainbase

Get base domain from url

image

whackashoe/domainbase

Get base domain from url

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Build Status, (*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)

The Versions

28/01 2015

dev-master

9999999-dev

Get base domain from url

  Sources   Download

MIT

The Development Requires