Download the PHP package juststeveking/uri-builder without Composer

On this page you can find all versions of the php package juststeveking/uri-builder. 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 uri-builder

![](./uri-builder.png)

URI Builder

Latest Version PHP Version tests Scrutinizer Code Quality Total Downloads

A simple URI builder in PHP that is slightly opinionated

Purpose

The purpose of this package is to provide a fluent interface to build JSON:API compliant URI strings.

Usage

Using the built in parse_url in PHP will produce the following output:

This is fine for basic usage. To use this very opinionated package:

Building Pragmatically

Creating from a String

Converting back to a String

The toString method has an optional parameter which will allow you to urlencode the query parameters before returning the URI.

Adding Query Parameters after creation

Creating query parameters after creation is pretty simple. You can pass through anything that isn't:

It has a helper option on the end of the function which will convert booleans to strings.

The following is how you use it:

The output will be: https://www.domain.com/api/v1/resource?include=test,another,options&published=true


All versions of uri-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
juststeveking/parameterbag Version ^2.0
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 juststeveking/uri-builder contains the following files

Loading the files please wait ....