PHPackages                             claromentis/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. claromentis/opauth-twitter

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

claromentis/opauth-twitter
==========================

Twitter strategy for Opauth

1.0.0(10y ago)013.5k↓80.5%MITPHPPHP &gt;=5.3.0

Since Aug 12Pushed 10y ago5 watchersCompare

[ Source](https://github.com/Claromentis/opauth-twitter)[ Packagist](https://packagist.org/packages/claromentis/opauth-twitter)[ Docs](http://opauth.org)[ RSS](/packages/claromentis-opauth-twitter/feed)WikiDiscussions 1.0 Synced 2d ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

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

[](#opauth-twitter)

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

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

[](#getting-started)

1. Install Opauth-Twitter:

    ```
    cd path/to/app/root
    composer require opauth/twitter:dev-wip/1.0
    ```
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:

```
