Skip to content
This repository was archived by the owner on Dec 4, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ Thumbs.db
__MACOSX

# Project Specific
/vendor/
composer.lock
.idea/
212 changes: 0 additions & 212 deletions EpiCurl.php

This file was deleted.

7 changes: 7 additions & 0 deletions EpiOAuth.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<?php

namespace jmathai\twitter_async;

use jmathai\php_multi_curl\EpiCurl;

use Exception;

class EpiOAuth
{
public $version = '1.0';
Expand Down
3 changes: 3 additions & 0 deletions EpiSequence.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<?php

namespace jmathai\twitter_async;

class EpiSequence
{
private $timers, $min, $max, $width = 100;
Expand Down
10 changes: 10 additions & 0 deletions EpiTwitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
*
* @author Jaisen Mathai <jaisen@jmathai.com>
*/

namespace jmathai\twitter_async;

use ArrayAccess;
use ArrayIterator;
use Countable;
use Exception;
use IteratorAggregate;
use jmathai\php_multi_curl\EpiCurl;

class EpiTwitter extends EpiOAuth
{
const EPITWITTER_SIGNATURE_METHOD = 'HMAC-SHA1';
Expand Down
24 changes: 19 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
{
"name": "jmathai/twitter-async",
"description": "Twitter-async is a high performance wrapper for Twitter's OAuth API which provides parallel/asynchronous calls.",
"homepage": "http://www.jaisenmathai.com/articles/twitter-async-documentation.html",
"author": "Jaisen Mathai",
"license": "BSD"
"name": "jmathai/twitter-async",
"description": "Twitter-async is a high performance wrapper for Twitter's OAuth API which provides parallel/asynchronous calls.",
"homepage": "http://www.jaisenmathai.com/articles/twitter-async-documentation.html",
"author": "Jaisen Mathai",
"license": "BSD",
"repositories": [
{
"type": "vcs",
"url": "https://github.com/jmathai/php-multi-curl"
}
],
"require": {
"jmathai/php-multi-curl": ">= 0.1"
},
"autoload": {
"psr-4": {
"jmathai\\twitter_async\\": ""
}
}
}
11 changes: 8 additions & 3 deletions simpleTest.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<?php
include 'EpiCurl.php';
include 'EpiOAuth.php';
include 'EpiTwitter.php';

include './EpiOAuth.php';
include './EpiTwitter.php';
include './vendor/jmathai/php-multi-curl/EpiCurl.php';
use jmathai\php_multi_curl\EpiCurl;
use jmathai\twitter_async\EpiOAuth;
use jmathai\twitter_async\EpiTwitter;

$consumer_key = 'jdv3dsDhsYuJRlZFSuI2fg';
$consumer_secret = 'NNXamBsBFG8PnEmacYs0uCtbtsz346OJSod7Dl94';
$token = '25451974-uakRmTZxrSFQbkDjZnTAsxDO5o9kacz2LT6kqEHA';
Expand Down