Skip to content

Savin-Igor/savin-url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Url

A thin wrapper over the library sabre/uri, package for framework Laravel

Installation

Via Composer

$ composer require savin/url

Usage


    $url = Url::parse('https://www.google.com/search?q=curent+time');
    
    var_dump($url);

    /*
        array(7) {
          ["scheme"]=>
          string(5) "https"
          ["host"]=>
          string(14) "www.google.com"
          ["path"]=>
          string(7) "/search"
          ["query"]=>
          string(13) "q=curent+time"
          ["port"]=>
          NULL
          ["user"]=>
          NULL
          ["fragment"]=>
          NULL
        }
    */

About

A thin wrapper over the library sabre/uri, package for framework Laravel.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages