PHP coderwall API
I really love coderwall, so I wanted to build something simple and cool for PHP, that's why I've created the Coderwall PHP SDK.
Simple PHP API library for coderwall.com
Install
composer require italolelis/coderwall
Usage
Basic example
The SDK is pretty simple to use:
<?php
use Coderwall\Coderwall;
// Instanciate coderwall API manager
$coderwall = new Coderwall();
$user = $coderwall->getUser('italolelis');
echo $user->getUsername(); //prints italolelis
echo $user->getName(); //prints Ítalo Lelis de Vietro
//Acounts
echo $user->getAccounts()->getTwitter();
echo $user->getAccounts()->getGithub();
$user->getBadges()->map(function($badge) {
echo $badge->getName();
})
There are many more methods to explore. Hope you like it :D
Please take a look at github
Written by Ítalo Lelis de Vietro
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#