Download the PHP package jdriscoll/curl-psr without Composer

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

Overview

This lets you run Curl requests with PSR-7 objects. This has a few benefits:

  1. It keeps you away from Curl syntax, which is complicated when you're doing more than just downloading a file
  2. If you're proxying, this requires less code as PSR-7 ServerRequest is compliant with PSR-7 Request - in other words, a modified version of your $request would usually work fine.
  3. Sending the response back is simpler
  4. Streaming responses is significantly more straightwarward

Usage

The primary aim of this is to make JSON API proxies simpler.

Limitations

This does not attempt to support every possible Curl feature nor everything that can be expressed in PSR-7 requests/responses. Key functionality that should always work includes:

Advanced Usage

If you want to do two or more requests in parallel, you can. To do this, you use:

The return to runSimple() is in fact an iterator which will run over the same objects multiple times: once for the headers, once or more for body chunks, and once more when the transfer is known to be complete. The body attached to the response will always be up-to-date with the latest packet, but won't report a size until it's done.

If you want specific keys to make it easier to tell which response is which, you can use runMap():


All versions of curl-psr with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
jdriscoll/celery Version ^1.3.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 jdriscoll/curl-psr contains the following files

Loading the files please wait ....