2017 © Pedro Peláez
 

library curly

Powerful PHP class for working with URLs

image

ehough/curly

Powerful PHP class for working with URLs

  • Monday, November 30, 2015
  • by ehough
  • Repository
  • 1 Watchers
  • 3 Stars
  • 547 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

curly Build Status

Powerful class for working with URLs. Requires PHP 5.2+., (*1)

  • Adheres as closely as possible to RFC 3986
  • Fully IPv6 ready
    foo://username:password@example.com:8042/over/there?name=ferret#nose
    \_/   \________________________________/\_________/ \_________/ \__/
     |                     |                     |           |        |
  scheme                authority               path        query   fragment

Sample Usage

$url = new ehough_curly_Url('foo://username:password@example.com:8042/over/there?name=ferret#nose');

$url->getAuthority();      // username@example.com:8042
$url->getFragment();       // nose
$url->getHost();           // example.com
$url->getPath();           // /over/there
$url->getPort();           // 8042
$url->getQuery();          // name=ferret
$url->getQueryVariables(); // array('name' => 'ferret');
$url->getScheme();         // foo
$url->getUser();           // username

$url->setFragment('ear');
$url->setHost('ehough.com');
$url->setPath('/paved/walkway');
$url->setPort(99);
$url->setQueryVariables(array('moon' => 'rise', 'sun' => 'set'));
$url->setScheme('teleport');
$url->setUser('melissa:salsa');

echo $url->toString(); // teleport://melissa:salsa@ehough.com:99/paved/walkway?moon=rise&sun=set#ear

The Versions

30/11 2015

dev-develop

dev-develop https://github.com/ehough/curly

Powerful PHP class for working with URLs

  Sources   Download

MPL-2.0

The Requires

  • php >=5.2.0

 

04/04 2013

dev-master

9999999-dev https://github.com/ehough/curly

Powerful PHP class for working with URLs

  Sources   Download

MPL-2.0

The Requires

  • php >=5.2.0

 

04/04 2013

1.0.3

1.0.3.0 https://github.com/ehough/curly

Powerful PHP class for working with URLs

  Sources   Download

MPL-2.0

The Requires

  • php >=5.2.0

 

18/03 2013

1.0.2

1.0.2.0 https://github.com/ehough/curly

Powerful PHP class for working with URLs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.1.0

 

The Development Requires

11/07 2012

1.0.1

1.0.1.0 https://github.com/ehough/curly

Powerful PHP class for working with URLs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.1.0

 

The Development Requires

02/07 2012

1.0.0

1.0.0.0 https://github.com/ehough/curly

Powerful PHP class for working with URLs

  Sources   Download

GPL-3.0+

The Requires

  • php >=5.1.0

 

The Development Requires