Download the PHP package maplephp/http without Composer

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

MaplePHP - A Full-Featured PSR-7 Compliant HTTP Library

MaplePHP/Http is a PHP library that brings simplicity and adherence to the PSR-7 standard into handling HTTP messages, requests, and responses within your web projects. It's thoughtfully designed to make the integration of crucial elements like Stream, Client, Cookies, UploadedFile, and Headers straightforward and efficient.

By aligning closely with PSR-7, MaplePHP/Http facilitates better interoperability between web components, allowing for more effective communication within applications. Whether you're working with client-side cookies, managing headers in a request, or handling file uploads through UploadedFile, this library has got you covered, making these tasks more manageable and less time-consuming.

MaplePHP/Http aims to support your web development by offering a reliable foundation for working with HTTP messaging, streamlining the process of dealing with requests and responses. It's a practical choice for developers looking to enhance their applications with PSR-7 compliant HTTP handling in a user-friendly way.

Installation

Initialize

The examples below is utilizing the "namespace" below just to more easily demonstrate the guide.

Request

Get request method

Get Uri instance

Response

Only the (StreamInterface) Body attribute is required and the rest will auto propagate if you leave them be.

Get Status code

Get Status code

Message

Both Request and Response library will inherit methods under Message but with different information.

A standard example usage

Stream

None of the construct attributes are required and will auto propagate if you leave them be.

Basic stream examples

Write to stream

Get file content with stream

Upload a stream to the server

Create a request

The client will be using curl, so it's essential to ensure that it is enabled in case it has been disabled for any reason.


All versions of http with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
maplephp/dto 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 maplephp/http contains the following files

Loading the files please wait ....