takielias / tp
Twitter API Controller
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:laravel
Requires
- laravel/framework: ^5.1
README
Welcome to the tp wiki!
Twitter Official Api For Laravel 5.0+ or Upper version. Credit Goes to Twitter PHP
Installation
composer require takielias/tp
If you are using Laravel 5.4+, Laravel Package Auto-Discovery Feature is availabe. No need additional settings.
If you are using laravel 5.4 or Lower, Follow the steps below to make it Working.
Add providers in Config/App.php
takielias\tp\TpServiceProvider::class,
Add aliases in Config/App.php
'Tp' => takielias\tp\Facades\Tp::class,
Now you can use it as
You can get your Twitter App credential From Twitter Apps
$Twitter = new takielias\tp\Tp($consumerKey, $consumerSecret, $accessToken = null, $accessTokenSecret = null); $Twitter->send('Testing TP For laravel');
Twitter API Task Documentation Twitter PHP