PHPackages                             opauth/twitter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. opauth/twitter

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

opauth/twitter
==============

Twitter strategy for Opauth

0.3.2(9y ago)36298.3k—3.6%52[7 issues](https://github.com/opauth/twitter/issues)[3 PRs](https://github.com/opauth/twitter/pulls)4MITPHPPHP &gt;=5.2.0

Since May 23Pushed 7y ago12 watchersCompare

[ Source](https://github.com/opauth/twitter)[ Packagist](https://packagist.org/packages/opauth/twitter)[ Docs](http://opauth.org)[ RSS](/packages/opauth-twitter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (10)Used By (4)

Opauth-Twitter
==============

[](#opauth-twitter)

Twitter strategy for [Opauth](https://github.com/opauth/opauth), based on Opauth-OAuth.

Getting started
---------------

[](#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

    - 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
----------------------

[](#strategy-configuration)

Required parameters:

```
