Skip to content

Latest commit

 

History

History
executable file
·
36 lines (28 loc) · 1.04 KB

README.md

File metadata and controls

executable file
·
36 lines (28 loc) · 1.04 KB

ttools dev (twitter service provider for Silex)

TTools (Twitter Tools) Library is currently under development. It aims to make life easier for twitter app developers, providing a simple workflow for authentication, while maintaining a high-level of flexibility for various types of applications.

If you are a php developer and want to help, you are welcome.

requirements and install

TTools relies (for now) on a forked version of themattharris/tmhOAuth. Add this to your composer.json:

{
    "repositories": [
    	{ "type": "vcs", "url": "https://github.com/erikaheidi/tmhOAuth.git" },
    	{ "type": "vcs", "url": "git@github.com:boxlight/ttools.git" }
    ],
    "require": {
            "boxlight/ttools": "dev-master",
        "tmhoauth/tmhoauth": "dev-ttools"
    }
}

Then Add

$app->register(new TTools\Provider\Silex\TToolsServiceProvider(), array(
    'ttools.consumer_key'       => 'CONSUMER_KEY',
    'ttools.consumer_secret'    => 'CONSUMER_SECRET',
    'ttools.auth_method'        =>'/oauth/authorize'
));