Download the PHP package shieldon/psr-http without Composer

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

PSR 7, 15, 17 Implementation and Examples

build codecov Scrutinizer Code Quality License: MIT

This library is a PSR HTTP implementation created for Shieldon firewall 2 , following up the PSR (PHP Standard Recommendation) documents by one hundred percent.

Test Status

Shiledon PSR-HTTP library is strictly tested by unit tests contain almost all conditions that might be happened, if you find any bug or something that can improve this library, please let me know.

Test suite Status
Repository built-in tests Build Status
PSR-7 integration tests Build Status

You can use it on any framework which is compatible with those PSRs.

Install

Test

Quick Start

The simplest way to start implementing PSR-7 on your PHP applications, let's check out the examples below.

Create a server request.

Create a request.

Create a server response

Create a URI.

Create a stream instance.

Create an array with UploadedFile structure.

Table of Contents

If you are looking for combined examples, see unit testing.

The Behavior of Handling Request Body

Shieldon PSR-HTTP is ready for RESTful, the following content explains how PRS-HTTP deals with the request body.

The getParsedBody method will return:

Summary

Condition Method Content-type Parsed-body
A POST multipart/form-data
application/x-www-form-urlencode
array
B ALL excepts GET application/json object
C ALL excepts GET All excepts A or B array
D - - null

Hope this helps.


Author

Shieldon PSR HTTP library is brought to you by Terry L. from Taiwan.

License

MIT

References


All versions of psr-http with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware 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 shieldon/psr-http contains the following files

Loading the files please wait ....