ken
ken

Reputation: 8993

OAuth 2.0 Server for PHP

I have been struggling to find an active open-source PHP project that supports OAuth 2.0 as a server. There are tons of client examples that connect to Facebook, Twitter, etc. but as more and more people want to expose their own services through an API I'm a bit surprised the open source community hasn't addressed this need already. It's not that there is nothing but what's there is mostly out-of-date, little-to-no documentation, and very little to no activity in terms of current development and conversation.

Am I missing a good open-source option out there? Does anyone know of any commercial options? I really need to get something in place soonish and I personally don't have the bandwidth or security credentials to tackle this problem myself.

Upvotes: 11

Views: 20486

Answers (4)

sp3tsnaz
sp3tsnaz

Reputation: 506

oauth2 server by php league is much more followed and downloaded project on github. My personal experience has been awesome and the best part is it's documentation. Excellent implementation of oauth2.

Upvotes: 2

Erik
Erik

Reputation: 3198

According to http://www.zimuel.it/oauth2-apigility/ & http://apigility.org/documentation/auth/authentication-oauth2

You now can implement OAuth 2.0 Server using the open source project Apigility, with Brent Shaffer's implementation underneath...

in the end...

The OAuth2 implementation in Apigility uses the oauth2-server-php library by Brent Shaffer. Apigility uses a PDO database to store all the information related to the OAuth2 protocol. You can create your database using the schema reported in the file /vendor/zfcampus/zf-oauth2/data/db_oauth2.sql under your Apigility installation folder (zf-apigility-skeleton).

Upvotes: 1

ken
ken

Reputation: 8993

After much searching around I believe I have found the best solution for PHP'ers out there. Opinions are a dime a dozen but here's my favourite:

http://bshaffer.github.io/oauth2-server-php-docs/

Very active, high quality conversation and a solid product along with good (and improving) documentation.

Upvotes: 9

Rodion Baskakov
Rodion Baskakov

Reputation: 646

Here is the list of available server and client libraries:

http://oauth.net/2/

which leads to a github project which is maintained.

Upvotes: 5

Related Questions