vclayton / unpecl-oauth
Native PHP drop-in replacement for the PECL OAuth extension
Installs: 113 669
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 1
Open Issues: 2
Requires
- php: >=5.1.0
- ext-curl: *
- ext-hash: *
- ext-openssl: *
This package is not auto-updated.
Last update: 2025-01-04 16:52:10 UTC
README
Native PHP drop-in replacement for the PECL OAuth extension
Debugging Info
There is a static OAuth::getDebugInfo() method that will return details about the most recent request. There will only be debug info if enableDebug() has been called.
/**
* 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)
Running tests
The unmodified upstream PECL tests are in tests/upstream. The runtests
script patches and munges them into a more phpunit-friendly form, then runs them.
TODO
- The OAuthProvider class has no upstream compliance tests, so it is not yet implemented.
- The setRequestEngine() call is currently ignored, only Curl is implemented.
Notes
How to checkout the source code for the PECL OAuth extension:
svn co https://svn.php.net/repository/pecl/oauth