Download the PHP package manuman85/hal-client without Composer

On this page you can find all versions of the php package manuman85/hal-client. 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 hal-client

HalClient

A lightweight PHP client for consuming and manipulating Hypertext Application Language (HAL) resources.

Build Status Coverage Status

Installation

Install the latest version with Composer.

Check the Packagist page for all available versions.

HTTP Client dependency

The Hal client requires a HttpClientInterface implementation which can handle PSR-7 requests and responses.

To use the default implementations shipped with this library, you need to install Guzzle 7, 6 or 5.

Usage

We will use Propilex as an example API endpoint.

Create the client

At a first step, we setup a HalClient instance.

We can now set additional headers (eg. an Authorization header) which are sent with every request.

Note, that a client instance is immutable, which means, any call to change the state of the instance returns a new instance leaving the original instance unchanged.

Browse the API

To start browsing through the API, we first get the root resource.

We now follow the p:documents link.

If there is a second page with more documents, we can follow the next link.

Ok, let's create a new document.

Oh noes! A typo in the document title. Let's fix it.

Damn, we give up.

License

Copyright (c) 2015-2021 Jan Sorgalla. Released under the MIT License.


All versions of hal-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
psr/http-message Version ^1.0
guzzlehttp/psr7 Version ^2.0
guzzlehttp/uri-template Version ^1.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 manuman85/hal-client contains the following files

Loading the files please wait ....