芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/status.pulsehost.co.uk/vendor/hybridauth/hybridauth/README.md
[](https://github.com/hybridauth/hybridauth/stargazers) [](https://github.com/hybridauth/hybridauth/issues) [](https://supportukrainenow.org/) ## [Hybridauth](https://hybridauth.github.io/) 3.11 [](https://travis-ci.org/hybridauth/hybridauth) [](https://scrutinizer-ci.com/g/hybridauth/hybridauth/?branch=master) [](https://packagist.org/packages/hybridauth/hybridauth) [](https://gitter.im/hybridauth/hybridauth?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Hybridauth enables developers to easily build social applications and tools to engage websites visitors and customers on a social level that starts off with social sign-in and extends to social sharing, users profiles, friends lists, activities streams, status updates and more. The main goal of Hybridauth is to act as an abstract API between your application and the various social networks APIs and identities providers such as Facebook, Twitter and Google. #### Usage Hybridauth provides a number of basic [examples](https://github.com/hybridauth/hybridauth/tree/master/examples). You can also find complete Hybridauth documentation at https://hybridauth.github.io ```php $config = [ 'callback' => 'https://example.com/path/to/script.php', 'keys' => [ 'key' => 'your-twitter-consumer-key', 'secret' => 'your-twitter-consumer-secret', ], ]; try { $twitter = new Hybridauth\Provider\Twitter($config); $twitter->authenticate(); $accessToken = $twitter->getAccessToken(); $userProfile = $twitter->getUserProfile(); $apiResponse = $twitter->apiRequest('statuses/home_timeline.json'); } catch (\Exception $e) { echo 'Oops, we ran into an issue! ' . $e->getMessage(); } ``` #### Requirements * PHP 5.4+ * PHP Session * PHP cURL #### Installation To install Hybridauth we recommend [Composer](https://getcomposer.org/), the now defacto dependency manager for PHP. Alternatively, you can download and use the latest release available at [Github](https://github.com/hybridauth/hybridauth/releases). #### Versions Status | Version | Status | Repository | Documentation | PHP Version | |---------|-------------|-------------------------|-------------------------|-------------| | 2.x | Maintenance | [v2][hybridauth-2-repo] | [v2][hybridauth-2-docs] | >= 5.3 | | 3.x | Development | [v3][hybridauth-3-repo] | [v3][hybridauth-3-docs] | >= 5.4 | | 4.x | Future | -- | -- | >= 7.3 | [hybridauth-2-repo]: https://github.com/hybridauth/hybridauth/tree/v2 [hybridauth-3-repo]: https://github.com/hybridauth/hybridauth/ [hybridauth-2-docs]: https://hybridauth.github.io/hybridauth/ [hybridauth-3-docs]: https://hybridauth.github.io/ #### Questions, Help and Support? For general questions (i.e, "how-to" questions), please consider using [StackOverflow](https://stackoverflow.com/questions/tagged/hybridauth) instead of the Github issues tracker. For convenience, we also have a [low-activity] [Gitter channel](https://gitter.im/hybridauth/hybridauth) if you want to get help directly from the community. #### License Hybridauth PHP Library is released under the terms of MIT License. For the full Copyright Notice and Disclaimer, see [COPYING.md](https://github.com/hybridauth/hybridauth/blob/master/COPYING.md).