Download the PHP package arrayperu/http-code without Composer

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

HTTP Code Library

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

PHP Library for HTTP Status codes.

Table of Contents

Installation

Composer

Usage

Table of reference

1xx - Informational

Property Code Text
HTTP_CONTINUE 100 Continue
HTTP_SWITCHING_PROTOCOLS 101 Switching Protocols
HTTP_PROCESSING 102 Processing
HTTP_EARLY_HINTS 103 Early Hints

2xx - Successful

Property Code Text
HTTP_OK 200 OK
HTTP_CREATED 201 Created
HTTP_ACCEPTED 202 Accepted
HTTP_NON_AUTHORITATIVE_INFORMATION 203 Non-Authoritative Information
HTTP_NO_CONTENT 204 No Content
HTTP_RESET_CONTENT 205 Reset Content
HTTP_PARTIAL_CONTENT 206 Partial Content
HTTP_MULTI_STATUS 207 Multi-Status
HTTP_ALREADY_REPORTED 208 Already Reported
HTTP_IM_USED 226 IM Used

3xx - Redirect

Property Code Text
HTTP_MULTIPLE_CHOICES 300 Multiple Choices
HTTP_MOVED_PERMANENTLY 301 Moved Permanently
HTTP_FOUND 302 Found
HTTP_SEE_OTHER 303 See Other
HTTP_NOT_MODIFIED 304 Not Modified
HTTP_USE_PROXY 305 Use Proxy
HTTP_RESERVED 306 Reserved
HTTP_TEMPORARY_REDIRECT 307 Temporary Redirect
HTTP_PERMANENTLY_REDIRECT 308 Permanent Redirect

4xx - Client Error

Property Code Text
HTTP_BAD_REQUEST 400 Bad Request
HTTP_UNAUTHORIZED 401 Unauthorized
HTTP_PAYMENT_REQUIRED 402 Payment Required
HTTP_FORBIDDEN 403 Forbidden
HTTP_NOT_FOUND 404 Not Found
HTTP_METHOD_NOT_ALLOWED 405 Method Not Allowed
HTTP_NOT_ACCEPTABLE 406 Not Acceptable
HTTP_PROXY_AUTHENTICATION_REQUIRED 407 Proxy Authentication Required
HTTP_REQUEST_TIMEOUT 408 Request Timeout
HTTP_CONFLICT 409 Conflict
HTTP_GONE 410 Gone
HTTP_LENGTH_REQUIRED 411 Length Required
HTTP_PRECONDITION_FAILED 412 Precondition Failed
HTTP_REQUEST_ENTITY_TOO_LARGE 413 Payload Too Large
HTTP_REQUEST_URI_TOO_LONG 414 URI Too Long
HTTP_UNSUPPORTED_MEDIA_TYPE 415 Unsupported Media Type
HTTP_REQUESTED_RANGE_NOT_SATISFIABLE 416 Range Not Satisfiable
HTTP_EXPECTATION_FAILED 417 Expectation Failed
HTTP_I_AM_A_TEAPOT 418 I\'m a teapot
HTTP_MISDIRECTED_REQUEST 421 Misdirected Request
HTTP_UNPROCESSABLE_ENTITY 422 Unprocessable Entity
HTTP_LOCKED 423 Locked
HTTP_FAILED_DEPENDENCY 424 Failed Dependency
HTTP_RESERVED_FOR_WEBDAV_ADVANCED_COLLECTIONS_EXPIRED_PROPOSAL 425 Reserved for WebDAV advanced collections expired proposal
HTTP_UPGRADE_REQUIRED 426 Upgrade Required
HTTP_PRECONDITION_REQUIRED 428 Precondition Required
HTTP_TOO_MANY_REQUESTS 429 Too Many Requests
HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE 431 Request Header Fields Too Large
HTTP_UNAVAILABLE_FOR_LEGAL_REASONS 451 Unavailable For Legal Reasons

5xx - Server Error

Property Code Text
HTTP_INTERNAL_SERVER_ERROR 500 Internal Server Error
HTTP_NOT_IMPLEMENTED 501 Not Implemented
HTTP_BAD_GATEWAY 502 Bad Gateway
HTTP_SERVICE_UNAVAILABLE 503 Service Unavailable
HTTP_GATEWAY_TIMEOUT 504 Gateway Timeout
HTTP_VERSION_NOT_SUPPORTED 505 HTTP Version Not Supported
HTTP_VARIANT_ALSO_NEGOTIATES_EXPERIMENTAL 506 Variant Also Negotiates
HTTP_INSUFFICIENT_STORAGE 507 Insufficient Storage
HTTP_LOOP_DETECTED 508 Loop Detected
HTTP_NOT_EXTENDED 510 Not Extended
HTTP_NETWORK_AUTHENTICATION_REQUIRED 511 Network Authentication Required

All versions of http-code with dependencies

PHP Build Version
Package Version
Requires php Version ^5.4 || ^7.0 || ^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 arrayperu/http-code contains the following files

Loading the files please wait ....