Download the PHP package liquidrazor/http-contracts without Composer

On this page you can find all versions of the php package liquidrazor/http-contracts. 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 http-contracts

LiquidRazor HTTP Contracts

liquidrazor/http-contracts defines the HTTP transport vocabulary for the LiquidRazor Framework.

It provides HTTP request and response contracts, immutable scaffold implementations, concrete HTTP implementations of liquidrazor/transport-contracts, request-body parameter bag scaffolding, optional DTO gateway contracts/defaults, immutable HTTP exchange state, and HTTP lifecycle event contracts/value objects.

It does not implement an HTTP kernel or runtime.

Table of Contents

Purpose

This package describes HTTP-shaped input and output for LiquidRazor. It provides stable HTTP contracts and small immutable defaults without taking ownership of request execution.

Architectural Position

This package sits on top of liquidrazor/transport-contracts and supplies the HTTP-specific payload model used by future HTTP runtime layers.

Current mapping:

Implemented Surface

Implemented here:

Not Implemented

This package intentionally does not provide:

Request and Response

The request contract models an already-normalized HTTP request. The response contract models a response description ready for a later runtime or emitter layer.

Minimal example:

Request Body

Structured request body access is explicit:

This package does not expose parsed body as mixed, and it does not put an anonymous parsed-body array directly on the request contract.

RequestBodyInterface separates raw body from structured body:

Implemented body types:

Minimal example:

Transport Integration

HttpTransportInput, HttpTransportOutput, and HttpTransportContext implement the upstream contracts from liquidrazor/transport-contracts.

Transport name:

HttpTransportInput always carries an HttpRequestInterface payload.

HttpTransportOutput always carries an HttpResponseInterface payload.

Generic TransportStatus belongs to the transport output wrapper. HTTP response status code belongs to the HTTP response object itself.

Minimal example:

DTO Gateway

DTO support is optional.

This package provides:

DTOs are not mandatory, and this package does not require DTO marker interfaces.

Default behavior:

This package does not perform:

HTTP Exchange

HttpExchange is an immutable lifecycle carrier for:

Progression is represented through immutable with*() methods.

Minimal example:

Lifecycle Events

This package provides lifecycle event value objects only.

Implemented event catalog:

Each event carries HttpExchangeInterface.

This package does not provide:

Directory Layout

Production code exists only in:

There is no src/ directory by design.

Focused Docs

License

MIT License.


All versions of http-contracts with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
liquidrazor/transport-contracts Version ^0.1
liquidrazor/event-manager Version ^0.1
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 liquidrazor/http-contracts contains the following files

Loading the files please wait ...