vclayton / unpecl-oauth
PECL OAuth 扩展的本地 PHP 替代品
v0.5.5
2017-06-08 13:54 UTC
Requires
- php: >=5.1.0
- ext-curl: *
- ext-hash: *
- ext-openssl: *
This package is not auto-updated.
Last update: 2024-09-28 15:44:32 UTC
README
PECL OAuth 扩展的本地 PHP 替代品
调试信息
存在一个静态的 OAuth::getDebugInfo() 方法,该方法将返回最近请求的详细信息。只有在调用 enableDebug() 后才会存在调试信息。
/**
* Returns debug info about the most recent fetch.
* If no fetch has happened, debug info will be empty.
* @param string $key If given, return specific entry from debug info. Key is one of 'lastResponse', 'lastResponseInfo', 'lastResponseCode', or 'lastHeader'.
* @return mixed Returns a key/value array if key is not given, otherwise returns the specific key requested. If the key is not set, returns null.
*/
public static function getDebugInfo($key=null)
运行测试
未修改的上游 PECL 测试位于 tests/upstream。`runtests` 脚本会对它们进行修补和转换,使其更符合 phpunit,然后运行它们。
待办事项
- OAuthProvider 类没有上游兼容性测试,因此尚未实现。
- setRequestEngine() 调用目前被忽略,只实现了 Curl。
备注
如何检出 PECL OAuth 扩展的源代码: svn co https://svn.php.net/repository/pecl/oauth