A PHP client to manage communication to Critic
Install the module via composer, by adding the following to your project's composer.json
{
"repositories":[
{
"type": "vcs",
"url": "https://github.com/talis/critic-php-client"
},
],
"require" :{
"talis/critic-php-client": "~0.1"
}
}
then update composer:
$ php composer.phar update
In your code, do the following to create a review:
$criticClient = new \Critic\Client(CRITIC_BASE_URL, OAUTH_CONNECT_VALUES);
$criticClient->createReview(
$postFields,
OAUTH_CLIENT_ID,
OAUTH_CLIENT_SECRET,
$headerParams
);