diff --git a/.gitignore b/.gitignore index 90a0c16..e83bd31 100644 --- a/.gitignore +++ b/.gitignore @@ -121,3 +121,6 @@ lib/ # Ignore all local history of files .history .ionide + +# PHP +vendor/ diff --git a/README.md b/README.md index 4fe2ccb..374ef4f 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Disponível para: - [x] JavaScript ([veja a documentação](https://github.com/AlexandreBellas/bling-erp-api/tree/develop/typescript/README.md)) - [x] TypeScript ([veja a documentação](https://github.com/AlexandreBellas/bling-erp-api/tree/develop/typescript/README.md)) -- [ ] PHP (em desenvolvimento) +- [x] PHP ([veja a documentação](https://github.com/AlexandreBellas/bling-erp-api/tree/develop/php/README.md)) - [ ] C# (em breve) ## Instalação @@ -21,6 +21,12 @@ desejada. npm i bling-erp-api ``` +### PHP + +```bash +composer require alebatistella/bling-erp-api +``` + ## Recursos - [Guia de contribuição](https://github.com/AlexandreBellas/bling-erp-api/blob/v5.0.0/CONTRIBUTING.md) diff --git a/php/composer.json b/composer.json similarity index 74% rename from php/composer.json rename to composer.json index d4e78b9..a55dade 100644 --- a/php/composer.json +++ b/composer.json @@ -6,11 +6,11 @@ "license": "MIT", "autoload": { "psr-4": { - "AleBatistella\\BlingErpApi\\": "./src/", - "AleBatistella\\BlingErpApi\\Entities\\Shared\\": "./src/Entities/@shared/" + "AleBatistella\\BlingErpApi\\": "./php/src/", + "AleBatistella\\BlingErpApi\\Entities\\Shared\\": "./php/src/Entities/@shared/" }, "files": [ - "./src/Helpers/functions.php" + "./php/src/Helpers/functions.php" ] }, "authors": [ diff --git a/php/composer.lock b/composer.lock similarity index 99% rename from php/composer.lock rename to composer.lock index e446716..916861f 100644 --- a/php/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c8a3c37070516bd3412271302dfbde91", + "content-hash": "d7ba2a5f3ffe17c7dbf4b906df278139", "packages": [ { "name": "guzzlehttp/guzzle", diff --git a/php/phpunit.xml b/php/phpunit.xml index 4fc1d8b..265ce67 100644 --- a/php/phpunit.xml +++ b/php/phpunit.xml @@ -1,7 +1,7 @@ + bootstrap="../vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">