2017 © Pedro Peláez
 

library laravel-purl

A Laravel package for the Purl URL manipulation library.

image

ejunker/laravel-purl

A Laravel package for the Purl URL manipulation library.

  • Thursday, August 14, 2014
  • by ejunker
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,592 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 13 % Grown

The README.md

Laravel Purl

Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

A Laravel package for the Purl URL manipulation library. For information on how to use Purl, see the Purl Documentation., (*2)

Installation

Require this package in your composer.json and update composer., (*3)

"ejunker/laravel-purl": "0.1.*"

After updating composer, add the ServiceProvider to the providers array in app/config/app.php, (*4)

'Ejunker\LaravelPurl\ServiceProvider',

You can optionally use the facade for shorter code. Add this to your facades:, (*5)

'Purl' => 'Ejunker\LaravelPurl\Facade',

Examples

// Create a \Purl\Url object from a string
$url = Purl::make('http://www.laravel.com');

// Same as Request::url() but as a \Purl\Url object
$url = Purl::requestUrl();

// Same as Request::root() but as a \Purl\Url object
$url = Purl::requestRoot();

// Same as Request::fullUrl() but as a \Purl\Url object
$url = Purl::requestFullUrl();

The Versions

14/08 2014

dev-master

9999999-dev

A Laravel package for the Purl URL manipulation library.

  Sources   Download

The Requires

 

The Development Requires

by Eric Junker

11/08 2014

0.1.0

0.1.0.0

A Laravel package for the Purl URL manipulation library.

  Sources   Download

The Requires

 

The Development Requires

by Eric Junker