Download the PHP package corpus/http without Composer

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

Http

Latest Stable Version License ci.yml

HTTP Status Codes and Exceptions

Requirements

Installing

Install the latest version with:

Documentation

Class: Corpus\Http\Exceptions\AbstractHttpException

Base Exception class all HTTP Exception Classes Extend

Method: AbstractHttpException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Method: AbstractHttpException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents

Class: Corpus\Http\Exceptions\ClientError\AbstractClientErrorException

Base of Exceptions Representing The 4xx Class

Method: AbstractClientErrorException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Method: AbstractClientErrorException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents

Class: Corpus\Http\Exceptions\ClientError\BadRequestException

Method: BadRequestException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: BadRequestException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Class: Corpus\Http\Exceptions\ClientError\ForbiddenException

Method: ForbiddenException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: ForbiddenException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Class: Corpus\Http\Exceptions\ClientError\NotFoundException

Method: NotFoundException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: NotFoundException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Class: Corpus\Http\Exceptions\ClientError\TooManyRequestsException

Method: TooManyRequestsException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: TooManyRequestsException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Class: Corpus\Http\Exceptions\ClientError\UnauthorizedException

Method: UnauthorizedException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: UnauthorizedException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Class: Corpus\Http\Exceptions\Redirection\AbstractLocationRedirectionHttpException

Base of 3xx Exceptions which include a "Location" header.

Method: AbstractLocationRedirectionHttpException->__construct

AbstractRedirectionHttpException constructor.

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Undocumented Method: AbstractLocationRedirectionHttpException->getLocation()


Method: AbstractLocationRedirectionHttpException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents

Class: Corpus\Http\Exceptions\Redirection\AbstractRedirectionHttpException

Base of Exceptions Representing The 3xx Class

Method: AbstractRedirectionHttpException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Method: AbstractRedirectionHttpException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents

Class: Corpus\Http\Exceptions\Redirection\FoundException

Method: FoundException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: FoundException->__construct

AbstractRedirectionHttpException constructor.

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Undocumented Method: FoundException->getLocation()

Class: Corpus\Http\Exceptions\Redirection\SeeOtherException

Method: SeeOtherException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: SeeOtherException->__construct

AbstractRedirectionHttpException constructor.

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Undocumented Method: SeeOtherException->getLocation()

Class: Corpus\Http\Exceptions\ServerError\AbstractServerErrorException

Base of Exceptions Representing The 5xx Class

Method: AbstractServerErrorException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Method: AbstractServerErrorException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents

Class: Corpus\Http\Exceptions\ServerError\InternalServerErrorException

Method: InternalServerErrorException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: InternalServerErrorException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Class: Corpus\Http\Exceptions\Success\AbstractSuccessException

Base of Exceptions Representing The 2xx Class

Method: AbstractSuccessException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Method: AbstractSuccessException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents

Class: Corpus\Http\Exceptions\Success\NoContentException

Method: NoContentException->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


Method: NoContentException->__construct

Construct the *HttpException.

Use the HTTP Status code as the base exceptions code.

Parameters:

Class: Corpus\Http\Status

Method: Status::statusText

Return the text for an HTTP status code.

Class: Corpus\Http\StatusAwareInterface

Method: StatusAwareInterface->getHttpStatusCode

Get the HTTP Status Code the Exception Represents


All versions of http with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 | ^8.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 corpus/http contains the following files

Loading the files please wait ....