How can i write RESTful Client Side?

hi,

I want to get services from a provider that has developed with RESTfull and write an extension that send/receive from RESTful Server (for example: https://api.github.com/) with yii 1.x.

how can i do it?