Twitter OAuth协议的PHP库.zip

时间:2022-07-31 03:25:15
【文件属性】:
文件名称:Twitter OAuth协议的PHP库.zip
文件大小:31KB
文件格式:ZIP
更新时间:2022-07-31 03:25:15
类库下载-Twitter OAuth协议的PHP库 <?php namespace OAuth\Common; /**  * @author ieter Hordijk   */ class AutoLoader {     /**      * @var string The namespace prefix for this instance.      */     protected $namespace = '';     /**      * @var string The filesystem prefix to use for this instance      */     protected $path = '';     /**      * Build the instance of the autoloader      *      * @param string $namespace The prefixed namespace this instance will load      * @param string $path      The filesystem path to the root of the namespace      */     public function __construct($namespace, $path)     {         $this->namespace = ltrim($namespace, '\\');         $this->path      = rtrim($path, '/\\') . DIRECTORY_SEPARATOR;     }OAUTH协议为用户资源的授权提供了一个安全的、开放而又简易的标准。同时,任何第三方都可以使用OAUTH认证服务,任何服务提供商都可以实现自身的OAUTH认证服务,因而OAUTH是开放的。业界提供了OAUTH的多种实现如PHP、JavaScript,Java,Ruby等各种语言开发包,大大节约了程序员的时间,因而OAUTH是简易的。互联网很多服务如Open API,很多大公司如Google,Yahoo,Microsoft等都提供了OAUTH认证服务,这些都足以说明OAUTH标准逐渐成为开放资源授权的标准。
【文件预览】:
twitteroauth-master
----composer.json(463B)
----DOCUMENTATION(5KB)
----LICENSE(1KB)
----.DS_Store(6KB)
----src()
--------TwitterOAuth()
----README(966B)
----examples()
--------index.php(1KB)
--------images()
--------config.php(264B)
--------callback.php(1KB)
--------connect.php(662B)
--------html.inc(1KB)
--------test.php(12KB)
--------clearsessions.php(245B)
--------redirect.php(954B)

网友评论