Download the PHP package evaengine/eva-oauth without Composer

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

EvaOAuth

Latest Stable Version License Build Status Coverage Status Scrutinizer Code Quality

EvaOAuth provides a standard interface for OAuth1.0 / OAuth2.0 client authorization, it is easy to integrate with any PHP project by very few lines code.

中文文档

Features

Quick Start

EvaOAuth can be found on Packagist. The recommended way to install this is through composer.

Edit your composer.json and add:

And install dependencies:

Let's start a example of Facebook Login, if you have already have a Facebook developer account and created an app, prepare a request.php as below:

Run request.php in browser, will be redirected to Facebook authorization page. After user confirm authorization, prepare the access.php for callback:

Once access token received, we could use access token to visit any protected resources.

That's it, more usages please check examples and wiki.

Providers

EvaOAuth supports most popular OAuth services as below:

Creating a custom provider require only few lines code, for OAuth2 sites:

Then register to service and create instance:

Storage

In OAuth1.0 workflow, we need to store request token somewhere, and use request token exchange for access token.

EvaOAuth use Doctrine\Cache as storage layer. If no configuration, default storage layer use file system to save data, default path is EvaOAuth/tmp.

Feel free to change file storage path before Service start:

Or use other storage such as Memcache:

Events Support

EvaOAuth defined some events for easier injection which are:

For example, if we want to send an additional header before get access token:

Implementation Specification

EvaOAuth based on amazing http client library Guzzle, use fully OOP to describe OAuth specification.

Refer wiki for details:

Debug and Logging

Enable debug mode will log all requests & responses.

Make sure PHP script have permission to write log path.

API References

Run phpdoc will generate API references under docs/.

Join My Telegram Group


All versions of eva-oauth with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
zendframework/zend-config Version 2.*
zendframework/zend-session Version 2.*
zendframework/zend-json Version 2.*
zendframework/zend-http Version 2.0.3
zendframework/zend-eventmanager Version 2.*
zendframework/zendoauth Version 2.0.2
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 evaengine/eva-oauth contains the following files

Loading the files please wait ....