repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Parte.php
src/CfdiUtils/Elements/Cfdi33/Parte.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Cfdi33\Traits\InformacionAduaneraTrait; use CfdiUtils\Elements\Common\AbstractElement; class Parte extends AbstractElement { use InformacionAduaneraTrait; public function getElementName(): string { return 'cfdi:Parte'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/CfdiRelacionado.php
src/CfdiUtils/Elements/Cfdi33/CfdiRelacionado.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class CfdiRelacionado extends AbstractElement { public function getElementName(): string { return 'cfdi:CfdiRelacionado'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Traslado.php
src/CfdiUtils/Elements/Cfdi33/Traslado.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class Traslado extends AbstractElement { public function getElementName(): string { return 'cfdi:Traslado'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Receptor.php
src/CfdiUtils/Elements/Cfdi33/Receptor.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class Receptor extends AbstractElement { public function getElementName(): string { return 'cfdi:Receptor'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/ConceptoImpuestos.php
src/CfdiUtils/Elements/Cfdi33/ConceptoImpuestos.php
<?php namespace CfdiUtils\Elements\Cfdi33; class ConceptoImpuestos extends Impuestos { public function getChildrenOrder(): array { return [ 'cfdi:Traslados', 'cfdi:Retenciones', ]; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Traslados.php
src/CfdiUtils/Elements/Cfdi33/Traslados.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class Traslados extends AbstractElement { public function getElementName(): string { return 'cfdi:Traslados'; } public function addTraslado(array $attributes = []): Traslado { $traslado = ne...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/ComplementoConcepto.php
src/CfdiUtils/Elements/Cfdi33/ComplementoConcepto.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class ComplementoConcepto extends AbstractElement { public function getElementName(): string { return 'cfdi:ComplementoConcepto'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/CuentaPredial.php
src/CfdiUtils/Elements/Cfdi33/CuentaPredial.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class CuentaPredial extends AbstractElement { public function getElementName(): string { return 'cfdi:CuentaPredial'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Retencion.php
src/CfdiUtils/Elements/Cfdi33/Retencion.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class Retencion extends AbstractElement { public function getElementName(): string { return 'cfdi:Retencion'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/InformacionAduanera.php
src/CfdiUtils/Elements/Cfdi33/InformacionAduanera.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class InformacionAduanera extends AbstractElement { public function getElementName(): string { return 'cfdi:InformacionAduanera'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/CfdiRelacionados.php
src/CfdiUtils/Elements/Cfdi33/CfdiRelacionados.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class CfdiRelacionados extends AbstractElement { public function getElementName(): string { return 'cfdi:CfdiRelacionados'; } public function addCfdiRelacionado(array $attributes = []): CfdiRelacionado ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Emisor.php
src/CfdiUtils/Elements/Cfdi33/Emisor.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class Emisor extends AbstractElement { public function getElementName(): string { return 'cfdi:Emisor'; } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Concepto.php
src/CfdiUtils/Elements/Cfdi33/Concepto.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Cfdi33\Traits\ImpuestosTrait; use CfdiUtils\Elements\Cfdi33\Traits\InformacionAduaneraTrait; use CfdiUtils\Elements\Common\AbstractElement; class Concepto extends AbstractElement { use ImpuestosTrait; use InformacionAduaneraTrait; public ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Conceptos.php
src/CfdiUtils/Elements/Cfdi33/Conceptos.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class Conceptos extends AbstractElement { public function getElementName(): string { return 'cfdi:Conceptos'; } public function addConcepto(array $attributes = [], array $children = []): Concepto { ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Complemento.php
src/CfdiUtils/Elements/Cfdi33/Complemento.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; use CfdiUtils\Nodes\NodeInterface; class Complemento extends AbstractElement { public function getElementName(): string { return 'cfdi:Complemento'; } public function add(NodeInterface $child): self ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Retenciones.php
src/CfdiUtils/Elements/Cfdi33/Retenciones.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Common\AbstractElement; class Retenciones extends AbstractElement { public function getElementName(): string { return 'cfdi:Retenciones'; } public function addRetencion(array $attributes = []): Retencion { $retenci...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Comprobante.php
src/CfdiUtils/Elements/Cfdi33/Comprobante.php
<?php namespace CfdiUtils\Elements\Cfdi33; use CfdiUtils\Elements\Cfdi33\Traits\ImpuestosTrait; use CfdiUtils\Elements\Common\AbstractElement; use CfdiUtils\Nodes\NodeInterface; class Comprobante extends AbstractElement { use ImpuestosTrait; public function getElementName(): string { return 'cfd...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Traits/ImpuestosTrait.php
src/CfdiUtils/Elements/Cfdi33/Traits/ImpuestosTrait.php
<?php namespace CfdiUtils\Elements\Cfdi33\Traits; use CfdiUtils\Elements\Cfdi33\Impuestos; use CfdiUtils\Elements\Cfdi33\Retencion; use CfdiUtils\Elements\Cfdi33\Traslado; trait ImpuestosTrait { /* * This method is required for all the shortcut methods included here * The returned instance must be Impu...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Elements/Cfdi33/Traits/InformacionAduaneraTrait.php
src/CfdiUtils/Elements/Cfdi33/Traits/InformacionAduaneraTrait.php
<?php namespace CfdiUtils\Elements\Cfdi33\Traits; use CfdiUtils\Elements\Cfdi33\InformacionAduanera; use CfdiUtils\Nodes\NodeInterface; trait InformacionAduaneraTrait { /* This method comes from NodeInterface */ abstract public function addChild(NodeInterface $node): NodeInterface; public function addIn...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Utils/RegimenCapitalRemover.php
src/CfdiUtils/Utils/RegimenCapitalRemover.php
<?php namespace CfdiUtils\Utils; use LogicException; final class RegimenCapitalRemover { /** * @var list<string> List of "Régimen de Capital", taken from IMSS * @see https://altapatronalpresencial.imss.gob.mx/sapi/plantillaPatrones.do?method=initCapturaMoral */ private const SUFFIXES = [ ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Utils/Format.php
src/CfdiUtils/Utils/Format.php
<?php namespace CfdiUtils\Utils; /** * This class provides static methods to format the values of the attributes */ class Format { public static function number(float $value, int $decimals = 2): string { return number_format($value, $decimals, '.', ''); } public static function datetime(int...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Utils/Xml.php
src/CfdiUtils/Utils/Xml.php
<?php namespace CfdiUtils\Utils; use DOMDocument; use DOMElement; use DOMNode; use LibXMLError; class Xml { public static function documentElement(DOMDocument $document): DOMElement { if (! $document->documentElement instanceof DOMElement) { throw new \UnexpectedValueException('DOM Docume...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Utils/CurrencyDecimals.php
src/CfdiUtils/Utils/CurrencyDecimals.php
<?php namespace CfdiUtils\Utils; class CurrencyDecimals { private string $currency; private int $decimals; public function __construct(string $currency, int $decimals) { if (! preg_match('/^[A-Z]{3}$/', $currency)) { throw new \UnexpectedValueException('Property currency is not v...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Utils/SatNsDefinitionsMover.php
src/CfdiUtils/Utils/SatNsDefinitionsMover.php
<?php namespace CfdiUtils\Utils; use CfdiUtils\Nodes\NodeInterface; use CfdiUtils\Nodes\NodeNsDefinitionsMover; final class SatNsDefinitionsMover { public function move(NodeInterface $root): void { $nodeNsDefinitionsMover = new NodeNsDefinitionsMover(); $nodeNsDefinitionsMover->setNamespaceFi...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Utils/SchemaLocations.php
src/CfdiUtils/Utils/SchemaLocations.php
<?php namespace CfdiUtils\Utils; use ArrayIterator; use Countable; use IteratorAggregate; use Traversable; class SchemaLocations implements Countable, IteratorAggregate { /** @var array<string, string> */ private array $pairs = []; /** * SchemaLocations constructor. * @param array<string, stri...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Utils/Rfc.php
src/CfdiUtils/Utils/Rfc.php
<?php namespace CfdiUtils\Utils; class Rfc implements \Stringable { public const RFC_GENERIC = 'XAXX010101000'; public const RFC_FOREIGN = 'XEXX010101000'; public const DISALLOW_GENERIC = 1; public const DISALLOW_FOREIGN = 2; private string $rfc; private int $length; /** @var string ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/VersionDiscovery/DomElementContainer.php
src/CfdiUtils/VersionDiscovery/DomElementContainer.php
<?php namespace CfdiUtils\VersionDiscovery; use DOMElement; class DomElementContainer implements ContainerWithAttributeInterface { public function __construct(private DOMElement $element) { } public function getAttributeValue(string $attribute): string { return $this->element->getAttribu...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/VersionDiscovery/VersionDiscoverer.php
src/CfdiUtils/VersionDiscovery/VersionDiscoverer.php
<?php namespace CfdiUtils\VersionDiscovery; use CfdiUtils\Nodes\NodeInterface; use CfdiUtils\Utils\Xml; use DOMDocument; use DOMElement; abstract class VersionDiscoverer { /** * This method should be implemented and return array of key/value elements * where the key is the version number * and the...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/VersionDiscovery/ContainerWithAttributeInterface.php
src/CfdiUtils/VersionDiscovery/ContainerWithAttributeInterface.php
<?php namespace CfdiUtils\VersionDiscovery; interface ContainerWithAttributeInterface { public function getAttributeValue(string $attribute): string; }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/VersionDiscovery/NodeContainer.php
src/CfdiUtils/VersionDiscovery/NodeContainer.php
<?php namespace CfdiUtils\VersionDiscovery; use CfdiUtils\Nodes\NodeInterface; class NodeContainer implements ContainerWithAttributeInterface { public function __construct(private NodeInterface $node) { } public function getAttributeValue(string $attribute): string { return $this->node[$...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Retenciones/RetencionesCreator20.php
src/CfdiUtils/Retenciones/RetencionesCreator20.php
<?php namespace CfdiUtils\Retenciones; use CfdiUtils\CadenaOrigen\XsltBuilderInterface; use CfdiUtils\CadenaOrigen\XsltBuilderPropertyInterface; use CfdiUtils\CadenaOrigen\XsltBuilderPropertyTrait; use CfdiUtils\Certificado\Certificado; use CfdiUtils\Certificado\CertificadoPropertyInterface; use CfdiUtils\Certificado...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Retenciones/RetencionesCreatorTrait.php
src/CfdiUtils/Retenciones/RetencionesCreatorTrait.php
<?php namespace CfdiUtils\Retenciones; use CfdiUtils\CadenaOrigen\DOMBuilder; use CfdiUtils\CadenaOrigen\XsltBuilderInterface; use CfdiUtils\CadenaOrigen\XsltBuilderPropertyTrait; use CfdiUtils\Certificado\Certificado; use CfdiUtils\Certificado\CertificadoPropertyTrait; use CfdiUtils\Elements\Common\AbstractElement; ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Retenciones/RetencionesCreator10.php
src/CfdiUtils/Retenciones/RetencionesCreator10.php
<?php namespace CfdiUtils\Retenciones; use CfdiUtils\CadenaOrigen\XsltBuilderInterface; use CfdiUtils\CadenaOrigen\XsltBuilderPropertyInterface; use CfdiUtils\CadenaOrigen\XsltBuilderPropertyTrait; use CfdiUtils\Certificado\Certificado; use CfdiUtils\Certificado\CertificadoPropertyInterface; use CfdiUtils\Certificado...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Retenciones/RetencionVersion.php
src/CfdiUtils/Retenciones/RetencionVersion.php
<?php namespace CfdiUtils\Retenciones; use CfdiUtils\VersionDiscovery\VersionDiscoverer; /** * This class provides static methods to retrieve the version attribute from a * Comprobante Fiscal Digital por Internet que ampara retenciones e información de Pagos * * It will not check anything but the value of the co...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Retenciones/Retenciones.php
src/CfdiUtils/Retenciones/Retenciones.php
<?php namespace CfdiUtils\Retenciones; use CfdiUtils\CfdiCreateObjectException; use CfdiUtils\Internals\XmlReaderTrait; use DOMDocument; use UnexpectedValueException; /** * This class contains minimum helpers to read CFDI Retenciones based on DOMDocument * * When the object is instantiated it checks that: * impl...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/Nodes.php
src/CfdiUtils/Nodes/Nodes.php
<?php namespace CfdiUtils\Nodes; use ArrayIterator; use Countable; use IteratorAggregate; use Traversable; /** * @implements IteratorAggregate<int, NodeInterface> */ class Nodes implements Countable, IteratorAggregate { /** @var NodeInterface[] */ private array $nodes = []; private NodesSorter $sorter...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/NodeNsDefinitionsMover.php
src/CfdiUtils/Nodes/NodeNsDefinitionsMover.php
<?php namespace CfdiUtils\Nodes; use CfdiUtils\Utils\SchemaLocations; class NodeNsDefinitionsMover { /** @var callable|null */ private $namespaceFilter; public function __construct() { $this->setNamespaceFilter(); } public function hasNamespaceFilter(): bool { return nul...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/Attributes.php
src/CfdiUtils/Nodes/Attributes.php
<?php namespace CfdiUtils\Nodes; use CfdiUtils\Utils\Xml; use Traversable; class Attributes implements \Countable, \IteratorAggregate, \ArrayAccess { /** @var array<string, string> */ private array $attributes = []; public function __construct(array $attributes = []) { $this->importArray($at...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/XmlNodeUtils.php
src/CfdiUtils/Nodes/XmlNodeUtils.php
<?php namespace CfdiUtils\Nodes; use CfdiUtils\Utils\Xml; use DOMElement; use SimpleXMLElement; class XmlNodeUtils { public static function nodeToXmlElement(NodeInterface $node): DOMElement { return (new XmlNodeExporter())->export($node); } public static function nodeToXmlString(NodeInterfac...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/XmlNodeExporter.php
src/CfdiUtils/Nodes/XmlNodeExporter.php
<?php namespace CfdiUtils\Nodes; use CfdiUtils\Utils\Xml; use DOMDocument; use DOMElement; class XmlNodeExporter { public function export(NodeInterface $node): DOMElement { $document = Xml::newDocument(); $rootElement = $this->exportRecursive($document, $node); $document->appendChild(...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/Node.php
src/CfdiUtils/Nodes/Node.php
<?php namespace CfdiUtils\Nodes; use CfdiUtils\Utils\Xml; use Traversable; class Node implements NodeInterface { private string $name; private Attributes $attributes; /** @var Nodes|NodeInterface[] */ private Nodes $children; /** * Node constructor. * @param NodeInterface[] $children...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/NodesSorter.php
src/CfdiUtils/Nodes/NodesSorter.php
<?php namespace CfdiUtils\Nodes; /** * This class is used to sort elements by name in a Nodes collection * @internal */ class NodesSorter { /** @var array<string, int> array of key (string) value (int) representing the naming order */ private array $order = []; private int $count = 0; public func...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/XmlNodeImporter.php
src/CfdiUtils/Nodes/XmlNodeImporter.php
<?php namespace CfdiUtils\Nodes; use DOMElement; use DOMNode; use DOMText; class XmlNodeImporter { /** * Local record for registered namespaces to avoid set the namespace declaration in every child * @var string[] */ private array $registeredNamespaces = []; public function import(DOMElem...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Nodes/NodeInterface.php
src/CfdiUtils/Nodes/NodeInterface.php
<?php namespace CfdiUtils\Nodes; interface NodeInterface extends \ArrayAccess, \Countable, \IteratorAggregate { public function name(): string; public function children(): Nodes; public function addChild(self $node): self; public function attributes(): Attributes; public function addAttributes...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/PemPrivateKey/PemPrivateKey.php
src/CfdiUtils/PemPrivateKey/PemPrivateKey.php
<?php namespace CfdiUtils\PemPrivateKey; use CfdiUtils\OpenSSL\OpenSSL; use CfdiUtils\OpenSSL\OpenSSLPropertyTrait; use OpenSSLAsymmetricKey; use UnexpectedValueException; class PemPrivateKey { use OpenSSLPropertyTrait; private string $contents; private ?OpenSSLAsymmetricKey $privatekey = null; /*...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/SaxonbCliBuilder.php
src/CfdiUtils/CadenaOrigen/SaxonbCliBuilder.php
<?php namespace CfdiUtils\CadenaOrigen; use CfdiUtils\Internals\TemporaryFile; use Symfony\Component\Process\Process; class SaxonbCliBuilder extends AbstractXsltBuilder { private string $executablePath; public function __construct(string $executablePath) { $this->setExecutablePath($executablePat...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/DOMBuilder.php
src/CfdiUtils/CadenaOrigen/DOMBuilder.php
<?php namespace CfdiUtils\CadenaOrigen; use DOMDocument; use LibXMLError; use XSLTProcessor; class DOMBuilder extends AbstractXsltBuilder { public function build(string $xmlContent, string $xsltLocation): string { $this->assertBuildArguments($xmlContent, $xsltLocation); $libxmlErrors = libxml...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/CfdiDefaultLocations.php
src/CfdiUtils/CadenaOrigen/CfdiDefaultLocations.php
<?php namespace CfdiUtils\CadenaOrigen; class CfdiDefaultLocations { public const XSLT_32 = 'http://www.sat.gob.mx/sitio_internet/cfd/3/cadenaoriginal_3_2/cadenaoriginal_3_2.xslt'; public const XSLT_33 = 'http://www.sat.gob.mx/sitio_internet/cfd/3/cadenaoriginal_3_3/cadenaoriginal_3_3.xslt'; public cons...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/GenkgoXslBuilder.php
src/CfdiUtils/CadenaOrigen/GenkgoXslBuilder.php
<?php namespace CfdiUtils\CadenaOrigen; use DOMDocument; use Genkgo\Xsl\Cache\NullCache; use Genkgo\Xsl\Exception\TransformationException; use Genkgo\Xsl\XsltProcessor; class GenkgoXslBuilder extends DOMBuilder { public function __construct() { if (! class_exists(XsltProcessor::class)) { ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/AbstractXsltBuilder.php
src/CfdiUtils/CadenaOrigen/AbstractXsltBuilder.php
<?php namespace CfdiUtils\CadenaOrigen; abstract class AbstractXsltBuilder implements XsltBuilderInterface { protected function assertBuildArguments(string $xmlContent, string $xsltLocation): string { if ('' === $xmlContent) { throw new \UnexpectedValueException('The XML content to transfo...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/XsltBuilderPropertyTrait.php
src/CfdiUtils/CadenaOrigen/XsltBuilderPropertyTrait.php
<?php namespace CfdiUtils\CadenaOrigen; trait XsltBuilderPropertyTrait { private ?XsltBuilderInterface $xsltBuilder = null; public function hasXsltBuilder(): bool { return $this->xsltBuilder instanceof XsltBuilderInterface; } public function getXsltBuilder(): XsltBuilderInterface { ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/XsltBuildException.php
src/CfdiUtils/CadenaOrigen/XsltBuildException.php
<?php namespace CfdiUtils\CadenaOrigen; class XsltBuildException extends \RuntimeException { }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/XsltBuilderPropertyInterface.php
src/CfdiUtils/CadenaOrigen/XsltBuilderPropertyInterface.php
<?php namespace CfdiUtils\CadenaOrigen; interface XsltBuilderPropertyInterface { public function hasXsltBuilder(): bool; public function getXsltBuilder(): XsltBuilderInterface; public function setXsltBuilder(?XsltBuilderInterface $xsltBuilder = null); }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/CadenaOrigen/XsltBuilderInterface.php
src/CfdiUtils/CadenaOrigen/XsltBuilderInterface.php
<?php namespace CfdiUtils\CadenaOrigen; interface XsltBuilderInterface { /** * Transform XML content to a string using XSLT * * @throws \UnexpectedValueException if the xml content is empty * @throws \UnexpectedValueException if the xslt location is empty * @throws \RuntimeException on pr...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/OpenSSL/OpenSSLException.php
src/CfdiUtils/OpenSSL/OpenSSLException.php
<?php namespace CfdiUtils\OpenSSL; class OpenSSLException extends \RuntimeException { }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/OpenSSL/OpenSSLCallerException.php
src/CfdiUtils/OpenSSL/OpenSSLCallerException.php
<?php namespace CfdiUtils\OpenSSL; use Throwable; class OpenSSLCallerException extends OpenSSLException { public function __construct( private CallResponse $execResult, string $message = 'OpenSSL execution error', int $code = 0, ?Throwable $previous = null, ) { parent:...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/OpenSSL/PemContainer.php
src/CfdiUtils/OpenSSL/PemContainer.php
<?php namespace CfdiUtils\OpenSSL; class PemContainer { public function __construct(private string $certificate, private string $publicKey, private string $privateKey) { } public function certificate(): string { return $this->certificate; } public function publicKey(): string ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/OpenSSL/CallResponse.php
src/CfdiUtils/OpenSSL/CallResponse.php
<?php namespace CfdiUtils\OpenSSL; class CallResponse { public function __construct( private string $commandLine, private string $output, private string $errors, private int $exitStatus, ) { } public function commandLine(): string { return $this->commandLin...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/OpenSSL/PemExtractor.php
src/CfdiUtils/OpenSSL/PemExtractor.php
<?php namespace CfdiUtils\OpenSSL; use CfdiUtils\Internals\NormalizeLineEndingsTrait; class PemExtractor { use NormalizeLineEndingsTrait; public function __construct(private string $contents) { } public function getContents(): string { return $this->contents; } public funct...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/OpenSSL/OpenSSL.php
src/CfdiUtils/OpenSSL/OpenSSL.php
<?php namespace CfdiUtils\OpenSSL; use CfdiUtils\Internals\NormalizeLineEndingsTrait; use CfdiUtils\Internals\TemporaryFile; class OpenSSL { use NormalizeLineEndingsTrait; private Caller $caller; public function __construct(string $opensslCommand = '') { $this->caller = new Caller($opensslC...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/OpenSSL/OpenSSLPropertyTrait.php
src/CfdiUtils/OpenSSL/OpenSSLPropertyTrait.php
<?php namespace CfdiUtils\OpenSSL; trait OpenSSLPropertyTrait { /** * Variable to store the instance of OpenSSL * You must set this property on the constructor of the class that uses this property, * otherwise getOpenSSL will fail * * To get this property is recommended to use getOpenSSL ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/OpenSSL/Caller.php
src/CfdiUtils/OpenSSL/Caller.php
<?php namespace CfdiUtils\OpenSSL; use CfdiUtils\Internals\CommandTemplate; use Symfony\Component\Process\Process; use Throwable; class Caller { public const DEFAULT_OPENSSL_EXECUTABLE = 'openssl'; private string $executable; public function __construct(string $executable = '') { $this->exe...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Cleaner/Cleaner.php
src/CfdiUtils/Cleaner/Cleaner.php
<?php namespace CfdiUtils\Cleaner; use CfdiUtils\Cfdi; use CfdiUtils\Cleaner\BeforeLoad\BeforeLoadCleanerInterface; use CfdiUtils\Cleaner\Cleaners\SchemaLocationsXsdUrlsFixer; use CfdiUtils\Utils\SchemaLocations; use CfdiUtils\Utils\Xml; use DOMAttr; use DOMDocument; use DOMNode; use DOMNodeList; use DOMXPath; use Lo...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Cleaner/CleanerException.php
src/CfdiUtils/Cleaner/CleanerException.php
<?php namespace CfdiUtils\Cleaner; class CleanerException extends \RuntimeException { }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Cleaner/Cleaners/SchemaLocationsXsdUrlsFixer.php
src/CfdiUtils/Cleaner/Cleaners/SchemaLocationsXsdUrlsFixer.php
<?php declare(strict_types=1); namespace CfdiUtils\Cleaner\Cleaners; use CfdiUtils\Internals\StringUncaseReplacer; use CfdiUtils\Utils\SchemaLocations; use DOMAttr; /** * Class SchemaLocationsXsdUrlsFixer * * This class is an abstraction of method Cleaner::fixKnownSchemaLocationsXsdUrls * * @internal */ final...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Cleaner/BeforeLoad/ChangeXmlnsSchemaLocation.php
src/CfdiUtils/Cleaner/BeforeLoad/ChangeXmlnsSchemaLocation.php
<?php namespace CfdiUtils\Cleaner\BeforeLoad; class ChangeXmlnsSchemaLocation implements BeforeLoadCleanerInterface { public function clean(string $content): string { return str_replace(' xmlns:schemaLocation="', ' xsi:schemaLocation="', $content); } }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Cleaner/BeforeLoad/BeforeLoadCleaner.php
src/CfdiUtils/Cleaner/BeforeLoad/BeforeLoadCleaner.php
<?php namespace CfdiUtils\Cleaner\BeforeLoad; class BeforeLoadCleaner implements BeforeLoadCleanerInterface { /** @var BeforeLoadCleanerInterface[] */ private array $cleaners; public function __construct(BeforeLoadCleanerInterface ...$cleaners) { if ([] === $cleaners) { $cleaners ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Cleaner/BeforeLoad/BeforeLoadCleanerInterface.php
src/CfdiUtils/Cleaner/BeforeLoad/BeforeLoadCleanerInterface.php
<?php namespace CfdiUtils\Cleaner\BeforeLoad; interface BeforeLoadCleanerInterface { public function clean(string $content): string; }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Cleaner/BeforeLoad/RemoveDuplicatedCfdi3Namespace.php
src/CfdiUtils/Cleaner/BeforeLoad/RemoveDuplicatedCfdi3Namespace.php
<?php namespace CfdiUtils\Cleaner\BeforeLoad; class RemoveDuplicatedCfdi3Namespace implements BeforeLoadCleanerInterface { public function clean(string $content): string { if ( str_contains($content, ' xmlns="http://www.sat.gob.mx/cfd/3"') && str_contains($content, ' xmlns:cfdi...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/Decimal.php
src/CfdiUtils/SumasPagos20/Decimal.php
<?php /** @noinspection PhpComposerExtensionStubsInspection */ namespace CfdiUtils\SumasPagos20; use JsonSerializable; final class Decimal implements JsonSerializable, \Stringable { public const SCALE = 24; public function __construct(private string $value) { } public function getValue(): stri...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/Impuestos.php
src/CfdiUtils/SumasPagos20/Impuestos.php
<?php namespace CfdiUtils\SumasPagos20; use JsonSerializable; use LogicException; final class Impuestos implements JsonSerializable { /** @var array<string, Impuesto> */ private array $impuestos = []; public function __construct(Impuesto ...$impuestos) { foreach ($impuestos as $impuesto) { ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/Currencies.php
src/CfdiUtils/SumasPagos20/Currencies.php
<?php namespace CfdiUtils\SumasPagos20; class Currencies { /** @var array<string, int> */ private ?array $currencyAllowedDecimals = null; /** @param array<string, int> $currencyAllowedDecimals */ public function __construct(array $currencyAllowedDecimals) { foreach ($currencyAllowedDecima...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/Pagos.php
src/CfdiUtils/SumasPagos20/Pagos.php
<?php namespace CfdiUtils\SumasPagos20; use JsonSerializable; class Pagos implements JsonSerializable { /** @var list<Pago> */ private array $pagos; public function __construct(private Totales $totales, Pago ...$pago) { $this->pagos = array_values($pago); } public function getTotale...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/Impuesto.php
src/CfdiUtils/SumasPagos20/Impuesto.php
<?php namespace CfdiUtils\SumasPagos20; use JsonSerializable; final class Impuesto implements JsonSerializable { public function __construct( private string $tipo, private string $impuesto, private string $tipoFactor, private string $tasaCuota, private Decimal $base, ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/Totales.php
src/CfdiUtils/SumasPagos20/Totales.php
<?php namespace CfdiUtils\SumasPagos20; use JsonSerializable; final class Totales implements JsonSerializable { public function __construct( private ?Decimal $retencionIva, private ?Decimal $retencionIsr, private ?Decimal $retencionIeps, private ?Decimal $trasladoIva16Base, ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/PagosWriter.php
src/CfdiUtils/SumasPagos20/PagosWriter.php
<?php namespace CfdiUtils\SumasPagos20; use CfdiUtils\Elements\Pagos20\Pago as ElementPago; use CfdiUtils\Elements\Pagos20\Pagos as ElementPagos; use CfdiUtils\Nodes\NodeInterface; use LogicException; final class PagosWriter { public function __construct(private ElementPagos $pagos) { } public stati...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/DoctoRelacionado.php
src/CfdiUtils/SumasPagos20/DoctoRelacionado.php
<?php namespace CfdiUtils\SumasPagos20; /** * The amounts on this class are set in the payment currency */ final class DoctoRelacionado { public function __construct(private Decimal $impPagado, private Impuestos $impuestos) { } public function getImpPagado(): Decimal { return $this->imp...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/Pago.php
src/CfdiUtils/SumasPagos20/Pago.php
<?php namespace CfdiUtils\SumasPagos20; use JsonSerializable; final class Pago implements JsonSerializable { public function __construct( private Decimal $monto, private Decimal $montoMinimo, private Decimal $tipoCambioP, private Impuestos $impuestos, ) { } public fun...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasPagos20/Calculator.php
src/CfdiUtils/SumasPagos20/Calculator.php
<?php namespace CfdiUtils\SumasPagos20; use CfdiUtils\Nodes\NodeInterface; use CfdiUtils\Nodes\Nodes; class Calculator { private int $paymentTaxesPrecision; private Currencies $currencies; public function __construct(int $paymentTaxesPrecision = 6, ?Currencies $currencies = null) { $this->s...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/ConsultaCfdiSat/RequestParameters.php
src/CfdiUtils/ConsultaCfdiSat/RequestParameters.php
<?php namespace CfdiUtils\ConsultaCfdiSat; use CfdiUtils\Cfdi; use UnexpectedValueException; class RequestParameters { private string $version; private float $totalFloat; public function __construct( string $version, private string $rfcEmisor, private string $rfcReceptor, ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/ConsultaCfdiSat/StatusResponse.php
src/CfdiUtils/ConsultaCfdiSat/StatusResponse.php
<?php namespace CfdiUtils\ConsultaCfdiSat; class StatusResponse { public function __construct( private string $code, private string $cfdi, private string $cancellable, private string $cancellationStatus, private string $validationEfos, ) { } /** * Status r...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/ConsultaCfdiSat/Config.php
src/CfdiUtils/ConsultaCfdiSat/Config.php
<?php namespace CfdiUtils\ConsultaCfdiSat; class Config { /** * Default value of SAT web service * @var string */ public const DEFAULT_SERVICE_URL = 'https://consultaqr.facturaelectronica.sat.gob.mx/ConsultaCFDIService.svc'; private string $serviceUrl; public function __construct( ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/ConsultaCfdiSat/WebService.php
src/CfdiUtils/ConsultaCfdiSat/WebService.php
<?php /** @noinspection PhpComposerExtensionStubsInspection */ namespace CfdiUtils\ConsultaCfdiSat; use RuntimeException; use SoapClient; use SoapVar; use stdClass; class WebService { private ?SoapClient $soapClient = null; private Config $config; public function __construct(?Config $config = null) ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasConceptos/SumasConceptos.php
src/CfdiUtils/SumasConceptos/SumasConceptos.php
<?php namespace CfdiUtils\SumasConceptos; use CfdiUtils\Nodes\NodeInterface; class SumasConceptos { private float $importes = 0.0; private float $descuento = 0.0; private float $total; private float $impuestosTrasladados; private float $impuestosRetenidos; /** * @var array<string, a...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/SumasConceptos/SumasConceptosWriter.php
src/CfdiUtils/SumasConceptos/SumasConceptosWriter.php
<?php namespace CfdiUtils\SumasConceptos; use CfdiUtils\Elements\Cfdi33\Comprobante as Comprobante33; use CfdiUtils\Elements\Cfdi40\Comprobante as Comprobante40; use CfdiUtils\Nodes\NodeInterface; use InvalidArgumentException; class SumasConceptosWriter { /** @var Comprobante33|Comprobante40 */ private NodeI...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/XmlResolver/XmlResolver.php
src/CfdiUtils/XmlResolver/XmlResolver.php
<?php namespace CfdiUtils\XmlResolver; use CfdiUtils\CadenaOrigen\CfdiDefaultLocations; use CfdiUtils\Certificado\CerRetriever; use Eclipxe\XmlResourceRetriever\Downloader\DownloaderInterface; use Eclipxe\XmlResourceRetriever\Downloader\PhpDownloader; use Eclipxe\XmlResourceRetriever\RetrieverInterface; use Eclipxe\X...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/XmlResolver/XmlResolverPropertyTrait.php
src/CfdiUtils/XmlResolver/XmlResolverPropertyTrait.php
<?php namespace CfdiUtils\XmlResolver; trait XmlResolverPropertyTrait { private ?XmlResolver $xmlResolver = null; public function hasXmlResolver(): bool { return $this->xmlResolver instanceof XmlResolver; } public function getXmlResolver(): XmlResolver { if (! $this->xmlResol...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/XmlResolver/XmlResolverPropertyInterface.php
src/CfdiUtils/XmlResolver/XmlResolverPropertyInterface.php
<?php namespace CfdiUtils\XmlResolver; interface XmlResolverPropertyInterface { public function hasXmlResolver(): bool; public function getXmlResolver(): XmlResolver; public function setXmlResolver(?XmlResolver $xmlResolver = null); }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Certificado/CertificadoPropertyTrait.php
src/CfdiUtils/Certificado/CertificadoPropertyTrait.php
<?php namespace CfdiUtils\Certificado; trait CertificadoPropertyTrait { private ?Certificado $certificado = null; public function hasCertificado(): bool { return $this->certificado instanceof Certificado; } public function getCertificado(): Certificado { if (! $this->certific...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Certificado/CerRetriever.php
src/CfdiUtils/Certificado/CerRetriever.php
<?php namespace CfdiUtils\Certificado; use Eclipxe\XmlResourceRetriever\AbstractBaseRetriever; use Eclipxe\XmlResourceRetriever\RetrieverInterface; class CerRetriever extends AbstractBaseRetriever implements RetrieverInterface { public function retrieve(string $url): string { $this->clearHistory(); ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Certificado/SatCertificateNumber.php
src/CfdiUtils/Certificado/SatCertificateNumber.php
<?php namespace CfdiUtils\Certificado; class SatCertificateNumber { private string $id; public function __construct(string $id) { if (! $this->isValidCertificateNumber($id)) { throw new \UnexpectedValueException('The certificate number is not correct'); } $this->id = $...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Certificado/SerialNumber.php
src/CfdiUtils/Certificado/SerialNumber.php
<?php namespace CfdiUtils\Certificado; use CfdiUtils\Internals\BaseConverter; /** * This class is used to load hexadecimal or decimal data as a certificate serial number. * It have its own class because SOLID and is easy to test in this way. * It is not intented to use in general. */ class SerialNumber { /**...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Certificado/NodeCertificado.php
src/CfdiUtils/Certificado/NodeCertificado.php
<?php namespace CfdiUtils\Certificado; use CfdiUtils\Nodes\NodeInterface; class NodeCertificado { public function __construct(private NodeInterface $comprobante) { } /** * Extract the certificate from Comprobante->certificado * If the node does not exists return an empty string * The ...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Certificado/CertificadoPropertyInterface.php
src/CfdiUtils/Certificado/CertificadoPropertyInterface.php
<?php namespace CfdiUtils\Certificado; interface CertificadoPropertyInterface { public function getCertificado(): Certificado; public function setCertificado(Certificado $certificado); }
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Certificado/Certificado.php
src/CfdiUtils/Certificado/Certificado.php
<?php namespace CfdiUtils\Certificado; use CfdiUtils\OpenSSL\OpenSSL; use CfdiUtils\OpenSSL\OpenSSLPropertyTrait; use CfdiUtils\Utils\RegimenCapitalRemover; class Certificado { use OpenSSLPropertyTrait; private string $rfc; private string $certificateName; private string $name; private Serial...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Validate/Asserts.php
src/CfdiUtils/Validate/Asserts.php
<?php namespace CfdiUtils\Validate; use Traversable; class Asserts implements \Countable, \IteratorAggregate { /** @var array<string, Assert> */ private array $asserts = []; private bool $mustStop = false; /** * This will try to create a new assert or get and change an assert with the same cod...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Validate/MultiValidator.php
src/CfdiUtils/Validate/MultiValidator.php
<?php namespace CfdiUtils\Validate; use CfdiUtils\Nodes\NodeInterface; use CfdiUtils\Validate\Contracts\ValidatorInterface; use Traversable; class MultiValidator implements ValidatorInterface, \Countable, \IteratorAggregate { /** @var ValidatorInterface[] */ private array $validators = []; public functi...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Validate/Hydrater.php
src/CfdiUtils/Validate/Hydrater.php
<?php namespace CfdiUtils\Validate; use CfdiUtils\CadenaOrigen\XsltBuilderPropertyInterface; use CfdiUtils\CadenaOrigen\XsltBuilderPropertyTrait; use CfdiUtils\Validate\Contracts\RequireXmlResolverInterface; use CfdiUtils\Validate\Contracts\RequireXmlStringInterface; use CfdiUtils\Validate\Contracts\RequireXsltBuilde...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Validate/CfdiValidatorTrait.php
src/CfdiUtils/Validate/CfdiValidatorTrait.php
<?php namespace CfdiUtils\Validate; use CfdiUtils\CadenaOrigen\DOMBuilder; use CfdiUtils\CadenaOrigen\XsltBuilderInterface; use CfdiUtils\CadenaOrigen\XsltBuilderPropertyTrait; use CfdiUtils\Nodes\NodeInterface; use CfdiUtils\Nodes\XmlNodeUtils; use CfdiUtils\XmlResolver\XmlResolver; use CfdiUtils\XmlResolver\XmlReso...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false
eclipxe13/CfdiUtils
https://github.com/eclipxe13/CfdiUtils/blob/6786b3ee34831ef0d633302226414682a7a35aca/src/CfdiUtils/Validate/Discoverer.php
src/CfdiUtils/Validate/Discoverer.php
<?php namespace CfdiUtils\Validate; use CfdiUtils\Validate\Contracts\DiscoverableCreateInterface as Discoverable; use CfdiUtils\Validate\Contracts\ValidatorInterface; class Discoverer { public function castNamespacePrefix(string $namespacePrefix): string { return rtrim($namespacePrefix, '\\') . '\\';...
php
MIT
6786b3ee34831ef0d633302226414682a7a35aca
2026-01-05T04:57:52.988826Z
false