是否有任何 php 类或库可以处理 oAuth 2.0? [英] Are there any php classes or libraries out there to handle oAuth 2.0?
问题描述
在我为 Facebook 和 oAuth 2.0 编写包装器之前,我想知道是否有人知道其他人已经使用过的任何代码.
有一个支持 OAuth 的 PHP 扩展.它的作者是 John Jawed.一个例子可以在这里和一个演练 也可用.
这个 pecl 包被 Rasmus Lerdorf 视为事实上的标准.>
Andy Smith 写了一个 用于 OAuth 的基本 PHP 库.
Cal Henderson 贡献了一个简单的 OAuth 库主要处理签名.
HTTP_OAuth 是一个 PEAR 包 由 Jeff Hodsdon 和 Bill Shupp 开发 (Digg).您可以使用此工具进行试用.
现在有一个 CakePHP 的 OAuth 组件.
Justin Richer 开发了一个插件,用于Elgg 社交网络平台,基于 基本的 PHP 库.这个库允许 Elgg 作为 OAuth 客户端(访问其他服务)和服务器(允许 OAuth 保护访问 Elgg API).该库同时支持 1.0 版和 1.0a 版.文档可以在 Elgg wiki 上找到.
Zend_OAuth 由 Pádraic Brady 提供.可以在此处找到源代码.>
Before I go and write a wrapper for Facebook and oAuth 2.0 I was wondering if anyone knew of any code out there that anyone else has used already.
There is an extension to PHP that supports OAuth. It was written by John Jawed. An example can be found here and a walkthrough is also available.
This pecl package is considered the de facto standard by Rasmus Lerdorf.
Andy Smith has written a basic PHP library for OAuth.
Cal Henderson has contributed a simple OAuth library that primarily handles signing.
HTTP_OAuth is a PEAR package developed by Jeff Hodsdon and Bill Shupp (Digg). You can try it out using this tool.
There is now an OAuth component for CakePHP.
Justin Richer has developed a plugin for the Elgg social networking platform, based on the basic PHP library. This library allows Elgg to act as both an OAuth client (to access other services) and server (allowing OAuth-protected access to the Elgg API). The library supports both version 1.0 and revision 1.0a simultaneously. Documentation can be found on the Elgg wiki.
Zend_OAuth was contributed by Pádraic Brady. The source code can be found here.
Source: http://oauth.net/code/
这篇关于是否有任何 php 类或库可以处理 oAuth 2.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!