Download the PHP package juanchosl/httpdata without Composer

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

HttpData

Description

This library implements the definitions of the different elements involved in data transmissions such as HTTP, applying the interfaces defineds in PSRS 7 and 17, adding the extra objects used and ensuring compliance with the requirements that allow to give the necessary stability to our application, being able to implement for third -party bookstores without the need to adapt our business logic to a new implementation that could modify its consumption or internal structure.

Install

Contents

Includes the needed implementations for a data transmission. You can view his definitions for each required block on the official page

PSR-7 Messages

The Containers folder/namespace, implementation of elements included into PSR-7

PSR-17 Factories

The Factories folder/namespace, defines how create the objects, ensuring the full compatibility between libraries, applying the PSR-17

Server factory

As an extra, we can create a full formatted Server request, ir order to retrieve a standard object from

FIG Message utils

The library includes the messages utils from FIGs of PHP, includes the

RequestMethodsInterface

Constants for the distincts http available methods

StatusCodesInterface

All the standard status codes, for use across your system

Body String creators

In order to create standard sender bodies, are providing 2 tools in order to create multipart/form-data and application/x-www-form-urlencoded

URL Encoder

Available for GET or BODY params, creating an urlencoded string from any array type

Multipart Encoder

Available for BODY params, creating multipar/form-data srting from any array type

Can add files from 3 distincts formats too

Body String reverse parsing

In order to receive standard bodies and parse to use it, you can read and convert the multipart/form-data and application/x-www-form-urlencoded string body contents

Multipart decoder

Available for BODY contents, reading multipar/form-data srting to array type

Can extract files too

We can extract both value groups, as array, with data into index 0 and files into index 1

Or populate to globals directly in order to use it for PATCH and PUT requests


All versions of httpdata with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1 || ^8.0
ext-mbstring Version *
fig/http-message-util Version 1.1.*
psr/http-message Version ^2.0
psr/http-factory Version 1.1.*
psr/http-client Version 1.0.*
juanchosl/exceptions Version 1.0.*
juanchosl/httpheaders 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 juanchosl/httpdata contains the following files

Loading the files please wait ....