It begins when working some projects to connect many thirdparty service via http connection, I create this curl abstract class to make this development of this project more easier. Well, i’m pretty lazy to create curl configuration one by one everytime to connect with thirdparty. So i ended up created Abstract class for handle the curl configuration.
Available Configuration
How To Use it
Just put this on your composer.json files
*Don’t Forget to composer update/composer install
and this is a tutorial how to used this package with an examples.
Example
In this example i’m gonna use this abstract class for Google Cloud Messaging Http service. Let’s say we have a project that required send notifications using GCM to mobile application android.
1. Create Class
2. Setting a Global Configuration for Thirdparty Http Service
3. Create a Function Inside Class
4. Let’s Call This Thirdparty Service
Well, it just four steps to use this package, how easy is that.
But I know this package also need some improvements so if you want make this package more awesome then just visit this github page and create a pull request, i’ll makes sure your pull request is gonna make this package more awesome.