Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
caiquearaujo committed Feb 21, 2023
2 parents 466ba53 + f1b54d6 commit f01c4ee
Show file tree
Hide file tree
Showing 30 changed files with 755 additions and 492 deletions.
19 changes: 19 additions & 0 deletions .php-cs-fixer.php
@@ -0,0 +1,19 @@
<?php
/*
* This document has been generated with
* https://mlocati.github.io/php-cs-fixer-configurator/#version:3.8.0|configurator
* you can change this configuration by importing this file.
*/
$config = new PhpCsFixer\Config();
return $config
->setIndent("\t")
->setRules([
'@PSR12' => true,
])
->setUsingCache(false)
->setFinder(
PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
)
;
10 changes: 9 additions & 1 deletion CHANGELOG.md
Expand Up @@ -61,4 +61,12 @@

## `1.1.0` at `2022-10-14`

* [ADD] Payload abstract class.
* [ADD] Payload abstract class.


## `1.2.0` at `2022-10-14`

* [ADD] CS Fixer;
* [CHANGE] `addQuery()` will be `appendQuery()` method now;
* [FIX] Invalid return data to `delete()` method.
* [SUPPORT] PHP 8.0+
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "piggly/php-api-client",
"description": "A client starter-kit used to interact with any REST API.",
"minimum-stability": "stable",
"version": "1.1.0",
"version": "1.2.0",
"keywords": [
"piggly",
"api",
Expand Down
6 changes: 3 additions & 3 deletions samples/request.php
Expand Up @@ -3,11 +3,11 @@
use Piggly\ApiClient\Configuration;
use Piggly\ApiClient\Request;

require_once( '../vendor/autoload.php' );
require_once('../vendor/autoload.php');

$config = new Configuration();
$config->host('https://jsonplaceholder.typicode.com/');

$request = new Request($config);
list($body, $code, $headers) = $request->get('/posts/{id}')->params(['id'=>1])->call();
die();
die();

0 comments on commit f01c4ee

Please sign in to comment.