2017 © Pedro PelĂĄez
 

library url

URL manipulation library

image

codeinc/url

URL manipulation library

  • Tuesday, March 13, 2018
  • by joanfabregat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 18 Versions
  • 14 % Grown

The README.md

URL library

A PHP 7 library to manipulates URLs. This library is compatible with PSR-7 UriInterface through the Psr7Url and [Psr7ServerUrl] classes., (*1)

Usage

<?php
use CodeInc\Url\Url;

// parsing a URL
$url = Url::fromString("https://www.google.com/?q=A+great+search");
if (isset($url->getQueryAsArray()["p"])) {
    echo $url->getQueryAsArray()["p"];
}

// building a URL
$url = (new Url())
    ->withHost("www.google.com")
    ->withoutScheme("https")
    ->withQuery(["q", "A great search"]);
echo $url;

// getting the current URL
$currentUrl = Url::fromGlobals();

## Tests

A unit test is available for the [`Url`](src/Url.php) class in the [`UrlTest`](tests/UrlTest.php) class. 

To run the tests using [PHPUnit](https://phpunit.de/):

```bash
./vendor/bin/phpunit tests/UrlTest.php

Installation

This library is available through Packagist and can be installed using Composer:, (*2)

composer require codeinc/url

License

The library is published under the MIT license (see LICENSE file)., (*3)

The Versions

13/03 2018

dev-master

9999999-dev https://github.com/CodeIncHQ/Url

URL manipulation library

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2018

1.4.0

1.4.0.0 https://github.com/CodeIncHQ/Url

URL manipulation library

  Sources   Download

MIT

The Requires

 

The Development Requires

13/03 2018

1.x-dev

1.9999999.9999999.9999999-dev https://github.com/CodeIncHQ/Url

URL manipulation library

  Sources   Download

MIT

The Requires

 

The Development Requires

08/03 2018

1.3.5

1.3.5.0 https://github.com/CodeIncHQ/lib-url

PHP URL manipulation library

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2018

1.3.4

1.3.4.0 https://github.com/codeinchq/lib-url

Code Inc. URL library

  Sources   Download

MIT

The Requires

 

The Development Requires

05/03 2018

1.3.3

1.3.3.0 https://github.com/codeinchq/lib-url

Code Inc. URL library

  Sources   Download

MIT

The Requires

 

The Development Requires

04/03 2018

1.3.2

1.3.2.0 https://github.com/codeinchq/lib-url

Code Inc. URL library

  Sources   Download

MIT

The Requires

 

The Development Requires

27/02 2018

1.3.1

1.3.1.0 https://github.com/codeinchq/lib-url

Code Inc. URL library

  Sources   Download

MIT

The Requires

 

The Development Requires

27/02 2018

1.3.0

1.3.0.0 https://github.com/codeinchq/lib-url

Code Inc. URL library

  Sources   Download

MIT

The Requires

 

The Development Requires

22/02 2018

1.2.0

1.2.0.0 https://github.com/codeinchq/lib-url

Code Inc. URL library

  Sources   Download

MIT

The Requires

 

The Development Requires

19/02 2018

1.1.1

1.1.1.0 https://github.com/codeinchq/lib-url

Code Inc.'s URL library

  Sources   Download

MIT

The Requires

  • php >=7.2

 

The Development Requires

19/02 2018

1.1.0

1.1.0.0 https://github.com/codeinchq/lib-url

Code Inc.'s URL library

  Sources   Download

MIT

The Requires

  • php >=7.2

 

The Development Requires

24/01 2018

1.0.5

1.0.5.0 https://github.com/codeinchq/lib-url

Code Inc.'s URL library

  Sources   Download

MIT

The Requires

 

12/12 2017

1.0.4

1.0.4.0 https://github.com/codeinchq/lib-url

Code Inc.'s URL library

  Sources   Download

MIT

The Requires

 

09/12 2017

1.0.3

1.0.3.0 https://github.com/codeinchq/lib-url

Code Inc.'s URL library

  Sources   Download

proprietary

The Requires

 

06/12 2017

1.0.2

1.0.2.0 https://github.com/codeinchq/lib-url

Code Inc.'s URL library

  Sources   Download

proprietary

The Requires

 

04/12 2017

1.0.1

1.0.1.0 https://github.com/codeinchq/lib-url

Code Inc.'s URL library

  Sources   Download

proprietary

The Requires

 

04/12 2017

1.0.0

1.0.0.0 https://github.com/codeinchq/lib-url

Code Inc.'s URL library

  Sources   Download

proprietary

The Requires