From 5ff69fdb15087e8be6435ef880cfe496a8802c28 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Fri, 29 Mar 2019 14:13:05 -0600 Subject: [PATCH 1/5] Fix suggest (same as other phpcfdi projects) --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b6f14d8..c211219 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,7 @@ "phpstan/phpstan-shim": "^0.11" }, "suggest": { - "phpcfdi/cfdi-expresiones": "Utilería para crear expresiones de CFD 3.2, CFDI 3.3 y RET 1.0" + "phpcfdi/cfdi-expresiones": "Genera expresiones de CFDI 3.3, CFDI 3.2 y RET 1.0" }, "autoload": { "psr-4": { From 10d88e731245ecaa83627db8ba929da3604d3779 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Fri, 29 Mar 2019 14:13:18 -0600 Subject: [PATCH 2/5] Fix repository --- CONTRIBUTING.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f5b450d..89618dd 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,25 +1,25 @@ # Contributing -Contributions are welcome. We accept pull requests on [GitHub](https://github.com/phpcfdi/sat-estado-cfdi). +Contributions are welcome. We accept pull requests on [GitHub](https://github.com/phpcfdi/sat-estado-cfdi-http-psr). This project adheres to a -[Contributor Code of Conduct](https://github.com/phpcfdi/sat-estado-cfdi/blob/master/CODE_OF_CONDUCT.md). +[Contributor Code of Conduct](https://github.com/phpcfdi/sat-estado-cfdi-http-psr/blob/master/CODE_OF_CONDUCT.md). By participating in this project and its community, you are expected to uphold this code. ## Team members * [Carlos C Soto](https://github.com/eclipxe13) - original author and maintainer -* [GitHub constributors](https://github.com/phpcfdi/sat-estado-cfdi/graphs/contributors) +* [GitHub constributors](https://github.com/phpcfdi/sat-estado-cfdi-http-psr/graphs/contributors) ## Communication Channels You can find help and discussion in the following places: -* GitHub Issues: +* GitHub Issues: ## Reporting Bugs -Bugs are tracked in our project's [issue tracker](https://github.com/phpcfdi/sat-estado-cfdi/issues). +Bugs are tracked in our project's [issue tracker](https://github.com/phpcfdi/sat-estado-cfdi-http-psr/issues). When submitting a bug report, please include enough information for us to reproduce the bug. A good bug report includes the following sections: @@ -42,8 +42,8 @@ section below, you may create bugfix branches and send us pull requests. ## Adding New Features If you have an idea for a new feature, it's a good idea to check out our -[issues](https://github.com/phpcfdi/sat-estado-cfdi/issues) or active -[pull requests](https://github.com/phpcfdi/sat-estado-cfdi/pulls) +[issues](https://github.com/phpcfdi/sat-estado-cfdi-http-psr/issues) or active +[pull requests](https://github.com/phpcfdi/sat-estado-cfdi-http-psr/pulls) first to see if the feature is already being worked on. If not, feel free to submit an issue first, asking whether the feature is beneficial to the project. This will save you from doing a lot of development work only to have your feature rejected. @@ -79,4 +79,5 @@ vendor/bin/parallel-lint src/ tests/ vendor/bin/phpcs -sp src/ tests/ vendor/bin/php-cs-fixer fix -v --dry-run vendor/bin/phpunit --coverage-text +vendor/bin/phpstan analyse --level max src/ tests/ ``` From dae1e73f59a98b3ec006c13ab9aadd4af3d02bfb Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Fri, 29 Mar 2019 14:15:41 -0600 Subject: [PATCH 3/5] update phpcfdi/sat-estado-cfdi to ^0.6.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index c211219..90a56b8 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "require": { "php": ">=7.2", "ext-dom": "*", - "phpcfdi/sat-estado-cfdi": "^0.5.0", + "phpcfdi/sat-estado-cfdi": "^0.6.0", "psr/http-client": "^1.0", "psr/http-factory": "^1.0", "psr/http-message": "^1.0" From a8907fa255b46ec94b2e097b755b38e32ee33964 Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Fri, 29 Mar 2019 14:23:16 -0600 Subject: [PATCH 4/5] Improve integrations docs --- README.md | 12 +++++++++--- docs/TODO.md | 2 +- docs/{Integracion.md => integracion-generica.md} | 0 docs/{Guzzle.md => integracion-guzzle.md} | 1 - 4 files changed, 10 insertions(+), 5 deletions(-) rename docs/{Integracion.md => integracion-generica.md} (100%) rename docs/{Guzzle.md => integracion-guzzle.md} (99%) diff --git a/README.md b/README.md index 884d9bb..b525e97 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ Usa [composer](https://getcomposer.org/) composer require phpcfdi/sat-estado-cfdi-http-psr ``` + ## Ejemplo básico de uso ```php @@ -74,10 +75,15 @@ if ($response->cancellable()->isNotCancellable()) { } ``` -En el archivo de documentación [Integración](docs/Integracion.md) hay notas de cómo puedes inteagrar -y usar esta librería en tu sistema usando la implementación de los PSR-17 y PSR-18 que decidas. -En el archivo de documentación [Guzzle](docs/Guzzle.md) podrás ver un ejemplo de implementación con la libreria [guzzlehttp/guzzle](https://github.com/guzzle/guzzle). +## Integraciones + +Puedes ver los siguientes recursos para integrar `phpcfdi/sat-estado-cfdi-http-psr` a tu proyecto. + +- [Integración Guzzle](docs/integracion-guzzle.md) + Implementación con [guzzlehttp/guzzle](https://github.com/guzzle/guzzle). +- [Integración genérica](docs/integracion-generica.md) + Implementación de los PSR-17 y PSR-18 que decidas, ejemplo usando Sunrise. ## Compatilibilidad diff --git a/docs/TODO.md b/docs/TODO.md index 3c04a31..2046724 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -5,5 +5,5 @@ - [ ] Laravel - [ ] Symfony - [ ] Yii - - [ ] Guzzle + - [X] Guzzle (gracias @blacktrue) - [ ] HTTPPlug diff --git a/docs/Integracion.md b/docs/integracion-generica.md similarity index 100% rename from docs/Integracion.md rename to docs/integracion-generica.md diff --git a/docs/Guzzle.md b/docs/integracion-guzzle.md similarity index 99% rename from docs/Guzzle.md rename to docs/integracion-guzzle.md index aca3bab..e09cfae 100644 --- a/docs/Guzzle.md +++ b/docs/integracion-guzzle.md @@ -27,4 +27,3 @@ $client = new \Http\Adapter\Guzzle6\Client(); $factory = new HttpConsumerFactory($client, $requestFactory, $streamFactory); $consumer = new HttpConsumerClient($factory); ``` - From f644978f113d47c6da97dacc0c4a9fdb10638e0e Mon Sep 17 00:00:00 2001 From: Carlos C Soto Date: Fri, 29 Mar 2019 14:28:17 -0600 Subject: [PATCH 5/5] version 0.2.0 --- docs/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 2d5cf51..ae52308 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## Version 0.2.0 2019-03-29 + +- Implemented `phpcfdi/sat-estado-cfdi:^0.6.0` +- Improve documentation and integrations +- Fix CONTRIBUTING project + + ## Version 0.1.0 2019-03-28 - Implemented `phpcfdi/sat-estado-cfdi:^0.5.0`