Download the PHP package serendipity_hq/oauth-guzzle-middleware without Composer

On this page you can find all versions of the php package serendipity_hq/oauth-guzzle-middleware. 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 oauth-guzzle-middleware

Latest Stable Version Build Status Total Downloads License Code Climate Test Coverage Issue Count StyleCI SensioLabsInsight Dependency Status

Guzzle 6+ OAuth Middleware

Signs HTTP requests using OAuth.

This version only works with Guzzle 6.0 and up!

(Forked from https://github.com/guzzle/oauth-subscriber and separated from original repo to be able to use continuous integration server and other analysis tools).

Installing

Requires PHP OAuth extension.

This project can be installed using Composer. Add the following to your composer.json:

{
    "require": {
        "serendipity_hq/oauth-guzzle-middleware": "~0.1"
    }
}

About OAuth

From OAuth Core 1.0a:

The OAuth protocol enables websites or applications (Consumers) to access Protected Resources from a web service (Service Provider) via an API, without requiring Users to disclose their Service Provider credentials to the Consumers. More generally, OAuth creates a freely-implementable and generic methodology for API authentication.

An example use case is allowing printing service printer.example.com (the Consumer), to access private photos stored on photos.example.net (the Service Provider) without requiring Users to provide their photos.example.net credentials to printer.example.com.

OAuth does not require a specific user interface or interaction pattern, nor does it specify how Service Providers authenticate Users, making the protocol ideally suited for cases where authentication credentials are unavailable to the Consumer, such as with OpenID.

OAuth aims to unify the experience and implementation of delegated web service authentication into a single, community-driven protocol. OAuth builds on existing protocols and best practices that have been independently implemented by various websites. An open standard, supported by large and small providers alike, promotes a consistent and trusted experience for both application developers and the users of those applications.

OAuth Versions

This library supports

How to use the OAuth Core 1.0a Middleware

You can send both 2-legged and 3-legged Requests by passing or not the token and token_secret values to the OAuth* middleware.

See the Terminology paragraph on hueniverse.com for more information about n-legged requests.

For a full working example see the Twitter example.

Send a 3-legged Request

To authenticate only a single Request with OAuth middleware, remove the RequestOptions::AUTH => 'oauth' option from the $clientParams array and put it into a $requestParams array:

Send a 2-legged Request

To send 2-legged Requests simply omit token and token_secret parameters.

Using the RSA-SH1 signature method


All versions of oauth-guzzle-middleware with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
aerendir/php-oauth-common Version *
guzzlehttp/guzzle Version ~6.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 serendipity_hq/oauth-guzzle-middleware contains the following files

Loading the files please wait ....