Releases: eclipxe13/CfdiUtils
Releases · eclipxe13/CfdiUtils
Version 2.3.2
- Fix how total is formatted in the expression of
\CfdiUtils\ConsultaCfdiSat\RequestParameters
- Version 3.2 was removing zero trailing decimals instead of using 6 fixed chars
- Version 3.3 was not using 1 leading zero (for integers) and 1 trailing zero (for decimals)
- On method
\CfdiUtils\Certificado\NodeCertificado::obtain()
change logic
and throw exception if temporary file cannot be created
Version 2.3.1
- Add elements helpers
CfdiUtils\Elements\Tfd11\TimbreFiscalDigital
to work with "TimbreFiscalDigital"
Version 2.3.0
- Add a client
\CfdiUtils\ConsultaCfdiSat\WebService
for the SAT WebService
https://consultaqr.facturaelectronica.sat.gob.mx/ConsultaCFDIService.svc?singleWsdl - Fix bug, must use
children()
method instead ofchildren
property.
Did not appears before because the variable using the property was always
aNode
but other implementation ofNodeInterface
would cause this to break. - Add a lot of fixes in docblocks to move
@param $var
to@param type $var
. - Add extensions requirements to composer.json: libxml, openssl & soap.
- Upgrade
phpstan/phpstan-shim
to version 0.9.1, the not-simple-to-see bug fixed
in this version was found byphpstan
- https://github.com/phpstan/phpstan
Version 2.2.0
- Refactor namespace
\CfdiUtils\CadenaOrigen
(backwards compatible):- Instead of one only xslt builder now it includes:
DOMBuilder
: Uses the regular PHP based methodGenkgoXslBuilder
: Uses the library genkgo/xsl xslt version 2 librarySaxonbCliBuilder
: Uses the command line saxonb-xslt command
- Build process implementations must return
XsltBuildException
(before they returnRuntimeException
) - All builders must implement
XsltBuilderInterface
- Add
XsltBuilderPropertyInterface
andXsltBuilderPropertyTrait
.
It does not havehasXsltBuilderProperty
method. DefaultLocations
has been deprecated in favor ofCfdiDefaultLocations
CadenaOrigenBuilder
has been deprecated in favor ofDOMBuilder
CadenaOrigenLocations
has been deprecated, will not be replaced
- Instead of one only xslt builder now it includes:
- Implement
XsltBuilderPropertyInterface
andXsltBuilderPropertyTrait
in objects that use
to createCadenaOrigenBuilder
objects. - For
CfdiCreator33
andCfdiValidator33
will create a default DOMBuilder object if none set. - Hydrator also receive and hydrates this by using
RequireXsltBuilderInterface
. CertificadoPropertyInterface
andCertificadoPropertyTrait
has been created.- Improve the tests.
Version 2.1.0
- Fix
SumasConceptos
to work also with "ImpuestosLocales" - Add elements helpers
CfdiUtils\Elements\ImpLocal10\ImpuestosLocales
to work with "ImpuestosLocales" - Add
CfdiUtils\Certificado\CerRetriever
that works withCfdiUtils\XmlResolver\XmlResolver
to download
a certificate from the SAT repository - Add a new validator
CfdiUtils\Validate\Cfdi33\Standard\TimbreFiscalDigitalSello
to validate that the SelloSAT
is actually the signature of the Timbre Fiscal Digital. If not then the CFDI was modified - Add a new real and valid CFDI to test, this allow
TimbreFiscalDigitalSello
to check real data and pass - Update test with
cfdi33-valid.xml
to allow failTimbreFiscalDigitalSello
- Travis: Remove xdebug for all but PHP 7.0
Version 2.0.1
- Small bugfixes thanks to scrutinizer-ci.com
- Fix some docblocks
- Travis: Build also with PHP 7.2
Version 2.0.0
- This library has been changed deeply.
- It can write CFDI version 3.3 using
CfdiUtils\Elements\Cfdi33
and helper classCfdiUtils\CfdiCreator33
- It can read CFDI files version 3.2 and 3.3 using
CfdiUtils\Cfdi
- It can validate a CFDI
- Rely on
CfdiUtils\Nodes
to perform most operations. CadenaOrigen
object have been split into two different objects:CadenaOrigenLocation
andCadenaOrigenBuilder
.- New object helpers like
Elements
,Certificado
,PemPrivateKey
&TimbreFiscalDigital
- Include wiki for documentation
Version 1.0.3
- Fix a bug to read the RFC when a certificate does not contain the pattern RFC / CURP but only RFC in the subject x500UniqueIdentifier field
Version 1.0.2
- After using
phpstan/phpstan
change the execution plan onCadenaOrigen
.
The previous functionthrowLibXmlErrorOrMessage(string $message)
always
throw an exception but it was not clear in the flow ofbuild
method.
Now it returns a \RuntimeException and that is thrown. So it is easy for an analysis tool
to know that the flow has been stopped. - Also fix case of calls
XSLTProcessor::importStylesheet
andXSLTProcessor::transformToXml
- Check with
isset
thatLibXMLError::$message
exists, phpstan was failing for this.
Version 1.0.0
Initial public release