承接 opauth/twitter 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

opauth/twitter

最新稳定版本:0.3.2

Composer 安装命令:

composer require opauth/twitter

包简介

Twitter strategy for Opauth

README 文档

README

Twitter strategy for Opauth, based on Opauth-OAuth.

Getting started

  1. Install Opauth-Twitter:

    cd path_to_opauth/Strategy
    git clone git@github.com:opauth/twitter.git Twitter

    or

    composer require opauth/twitter
  2. Create Twitter application at https://dev.twitter.com/apps

    • Make sure to enter a Callback URL or callback will be disallowed.
      Callback URL can be a made up one as Opauth will explicitly provide the correct one as part of the OAuth process.
    • Register your domains at @Anywhere domains.
      Twitter only allows authentication from authorized domains.
  3. Configure Opauth-Twitter strategy with at least Consumer key and Consumer secret.

  4. Direct user to http://path_to_opauth/twitter to authenticate

Strategy configuration

Required parameters:

<?php
'Twitter' => array(
	'key' => 'YOUR CONSUMER KEY',
	'secret' => 'YOUR CONSUMER SECRET'
)

See Twitter.php for optional parameters.

Opauth-Twitter does "Sign In with Twitter" by default.
If you prefer to do a 3-legged OAuth, explicitly add authenticate_url parameter to strategy configuration and set it to https://api.twitter.com/oauth/authorize.

Dependencies

tmhOAuth requires hash_hmac and cURL.
hash_hmac is available on PHP 5 >= 5.1.2.

Reference

License

Opauth-Twitter is MIT Licensed
Copyright © 2012 U-Zyn Chua (http://uzyn.com)

tmhOAuth is Apache 2 licensed.

统计信息

  • 总下载量: 295.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 41
  • 点击次数: 1
  • 依赖项目数: 9
  • 推荐数: 4

GitHub 信息

  • Stars: 36
  • Watchers: 12
  • Forks: 52
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2012-05-23