Epiphany RESTful PHP Framework
The Epiphany framework is fast, easy, clean and RESTful. The framework does not do a lot of magic under the hood. It is, by design, very simple and very powerful.
The documentation provides a few conventions that we believe lead to well written code but you're free to use any style you'd like. The framework never dictates how you should write or structure your application.
You can read the Epiphany RESTful PHP Framework documentation on Github.
Sample Code
Epi::init('route');
$router = new EpiRoute();
$router->get('/', 'home');
$router->get('/contact', 'contactUs');
$router->run();
function home() {
echo 'You are at the home page';
}
function contactUs() {
echo 'Send us an email at foo@bar.com';
}
Twitter-async
Twitter-async is a PHP Twitter OAuth wrapper which let's you make parallel web service calls. I had originally created it for PubliciTweet in order to understand the OAuth specification. Open sourcing it helped other developers looking for such a library and also myself as they began submitting patches.
You can read the Twitter-async documentation.
Sample Code
$twitterObj = new EpiTwitter($consumer_key, $consumer_secret, $oauth_token, $oauth_secret);
$twitterInfo= $twitterObj->get('/statuses/friends.json');
try{
foreach($twitterInfo as $friend) {
echo $friend->screen_name;
}
}catch(EpiOAuthException $e){
echo $e->getMessage();
}
Loading...