Download the PHP package nsaliu/laravel-uri without Composer

On this page you can find all versions of the php package nsaliu/laravel-uri. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-uri

Laravel URI package

CircleCI StyleCI

A simple and useful URI package for Laravel framework.

This package provides an object representation of a uniform resource identifier (URI), an easy access and manipulation to the parts of the URI.

Installation

This package requires PHP 7.2 and Laravel 5.8 or higher.

Install with composer:

Methods

createFromString

Creates a new instance with the specified URI.

toString

Return the string representation of the URI instance.

hostIsReachable

Check with a GET call if the host returns an HTTP status code equals to 200.

equals

Check if a string representation of the URI equals to the URI instance.

getComponents

Gets all the URIs components if presents.

Return:

Getters

getScheme

Get the scheme part of the URI.

If a scheme is present return otherwise an .

getUsername

Get the user part of the URI.

If a user is present returns , otherwise return an .

getPassword

Get the pass part of the URI.

If a password is set return , otherwise return an .

getAuthority

Get the authority part of the URI.

Return:

Example:

Return

getAuthorityWithPort

Get the authority part of the URI with the port too, even if it's the default for the scheme.

Return

getUserInfo

Get the user part of the URI.

Return:

getHost

Get the host part of the URI.

Return

getPort

Get the port part of the URI.

Return:

isDefaultPort

Get whether the port value of the URI is the default for the scheme.

Return:

getPath

Get the path value of the URI.

Return:

getPathAsArray

Get the path value of the URI as an array.

Return:

getQuery

Get the query part of the URI.

Return:

getQueryValue

Get the value of a given query key.

Return:

getQueryAsArray

Get the query part of the URI as an array.

Return:

getPathAndQuery

Get the path and query part of the URI.

Return:

getFragment

Get the fragment part of the URI.

Return:

Setters

setScheme

Set the scheme part of the URI.

setUsername

Set the user part of the URI.

setPassword

Set the password part of the URI.

setUserInfo

Set the user and password part of the URI.

setHost

Set the host part of the URI.

setPort

Set the port part of the URI.

setPath

Set the path part of the URI.

setQuery

Set the query part of the URI.

setQueryArray

Set the query part of the URI with an array.

addQuery

Add a query key and value to the URI.

changeQuery

Change a query part of the URI.

setFragment

Set the fragment part of the URI.


All versions of laravel-uri with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nsaliu/laravel-uri contains the following files

Loading the files please wait ....