-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from eclipxe13/master
Version 1.0.0: remove backwards compatibility with 0.4.2
- Loading branch information
Showing
50 changed files
with
518 additions
and
783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
/vendor | ||
/build | ||
/composer.lock | ||
.phpunit.result.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
# phpcfdi/xml-cancelacion To Do List | ||
|
||
- Remover @deprecated | ||
- Centralizar la creación de credenciales | ||
|
||
- [ ] Generar excepciones internas en lugar de excepciones genéricas de SPL. | ||
|
||
- [X] Generar excepciones internas en lugar de excepciones genéricas de SPL. | ||
- [X] Poner el copyright correcto en cuanto esté el sitio de PhpCfdi | ||
- [X] Dejar de usar CfdiUtils y usar phpcfdi/credentials cuando esté publicada y estable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Uso de XmlSecLibs `robrichards/xmlseclibs` | ||
|
||
A partir de la versión `1.0.0` se incluye un objeto `XmlSecLibsSigner` que implementa `SignerInterface`. | ||
|
||
Se puede utilizar [`robrichards/xmlseclibs`](https://github.com/robrichards/xmlseclibs) para hacer el firmado, | ||
sin embargo al 2019-04-09 aun no se han implementado los mecanismos para incluir el elemento `KeyValue`, | ||
a pesar de tener un [PR #75](https://github.com/robrichards/xmlseclibs/pull/75) desde 2015-09-03. | ||
|
||
Las otras dos desventajas están en la forma en que escribe los valores de `X509IssuerSerial`, | ||
tanto `X509IssuerName` como `X509SerialNumber`. | ||
|
||
Por lo anterior, para escribir el contenido de `KeyValue` usando `XmlSecLibsSigner` se usa la misma | ||
implementación manual y no la incompleta/incorrecta de XmlSecLibs. | ||
|
||
## Ejemplo de uso: | ||
|
||
```php | ||
<?php declare(strict_types=1); | ||
|
||
use PhpCfdi\XmlCancelacion\Signers\XmlSecLibsSigner; | ||
use PhpCfdi\XmlCancelacion\XmlCancelacionHelper; | ||
|
||
$xmlhelper = new XmlCancelacionHelper(); | ||
$xmlhelper->setSigner(new XmlSecLibsSigner()); // change signer to XmlSecLibsSigner | ||
$cancellation = $xmlhelper->signCancellation('11111111-2222-3333-4444-000000000001'); | ||
``` | ||
|
||
|
||
## Instalación | ||
|
||
Recuerda que `robrichards/xmlseclibs` no es una dependencia (es una recomendación) de `phpcfdi/xml-cancelacion` | ||
|
||
```shell script | ||
# instalar esta librería | ||
composer require phpcfdi/xml-cancelacion | ||
|
||
# instalar xmlseclibs | ||
composer require robrichards/xmlseclibs | ||
``` |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.