nickel715 / networker
v1.0.0
2015-02-19 22:34 UTC
Requires
- php: >=5.4.0
- ricardoper/twitteroauth: 2.1.*
- zendframework/zend-http: 2.3.*
Requires (Dev)
- phpunit/phpunit: 4.4.*
- satooshi/php-coveralls: 0.6.*
This package is not auto-updated.
Last update: 2024-11-09 18:43:23 UTC
README
Some websites does not provides a feature to find followers youe follow on other networks like twitter.
Features
- Get users you are following or followers you
- Store userslist
- Check if users exists on network
Supported networks
- Github
- Pinboard.in
- Trakt.tv
Code example
$username = 'nickel715'; $credentials = array( 'consumer_key' => '', 'consumer_secret' => '', 'oauth_token' => '', 'oauth_token_secret' => '', ); $twitterAuth = new \TwitterOAuth\Auth\SingleUserAuth($credentials, new \TwitterOAuth\Serializer\ArraySerializer()); $importNetwork = new Network\Twitter; $importNetwork->setTwitter($twitterAuth); $userList = $importNetwork->getAll($username); $storage = new Storage\File('userlist.txt'); $storage->addAll($userList); $exportNetwork = new Network\Pinboard; $exportNetwork->setHttpClient(new \Zend\Http\Client); foreach ($storage->findAll() as $user) { if ($exportNetwork->userExists($user)) { echo $exportNetwork->getUserLink($user), PHP_EOL; } }