This script require the following depedencies via composer
{ "require": { "abraham/twitteroauth": "^0.9.2", } }
PHP version that currently use is 7.2
| <?php | |
| $array1 = array( | |
| 0 => Green, | |
| 1 => green, | |
| 3 => Yellow, | |
| 5 => yellow, | |
| ); | |
| $array2 = array( |
| <?php | |
| class BlogController extends Controller | |
| { | |
| /** | |
| * Posts | |
| * | |
| * @return void | |
| */ | |
| public function showPosts() |
| <?php | |
| class Category { | |
| public static $HAM = 'ham'; | |
| public static $SPAM = 'spam'; | |
| } | |
| ?> |
| /* | |
| * using curl | |
| */ | |
| $key = 'YOUR_KEY_HERE'; | |
| $secret = 'YOUR_SECRET_HERE'; | |
| $api_endpoint = 'https://api.twitter.com/1.1/users/show.json?screen_name=marcosfernandez'; // endpoint must support "Application-only authentication" | |
| // request token | |
| $basic_credentials = base64_encode($key.':'.$secret); |