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
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/optimize_namespaces.php
src/Xml/Dom/Configurator/optimize_namespaces.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Configurator; use Closure; use Dom\XMLDocument; use function VeeWee\Xml\Dom\Manipulator\Document\optimize_namespaces as optimize_namespaces_manipulator; /** * @return Closure(XMLDocument): XMLDocument */ function optimize_namespaces(string $prefix = 'ns'): C...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/utf8.php
src/Xml/Dom/Configurator/utf8.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Configurator; use Closure; use Dom\XMLDocument; /** * @return Closure(XMLDocument): XMLDocument */ function utf8(): Closure { return static function (XMLDocument $document): XMLDocument { $document->charset = 'UTF-8'; return $document; ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/traverse.php
src/Xml/Dom/Configurator/traverse.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Configurator; use Closure; use Dom\XMLDocument; use VeeWee\Xml\Dom\Document; use VeeWee\Xml\Dom\Traverser\Visitor; /** * @no-named-arguments * @param list<Visitor> $visitors * * @return Closure(XMLDocument): XMLDocument */ function traverse(Visitor ... $v...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/pretty_print.php
src/Xml/Dom/Configurator/pretty_print.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Configurator; use Closure; use Dom\XMLDocument; use VeeWee\Xml\Dom\Document; use function VeeWee\Xml\Dom\Loader\xml_document_loader; /** * @return Closure(XMLDocument): XMLDocument */ function pretty_print(): Closure { return static function (XMLDocument...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Dom/Configurator/trim_spaces.php
src/Xml/Dom/Configurator/trim_spaces.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Configurator; use Closure; use Dom\XMLDocument; use VeeWee\Xml\Dom\Document; use function VeeWee\Xml\Dom\Loader\xml_document_loader; /** * @return Closure(XMLDocument): XMLDocument */ function trim_spaces(): Closure { return static function (XMLDocument ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Processor.php
src/Xml/Xslt/Processor.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt; use VeeWee\Xml\Dom\Document; use XSLTProcessor; use function VeeWee\Xml\Dom\Mapper\from_template_document; use function VeeWee\Xml\Internal\configure; use function VeeWee\Xml\Xslt\Configurator\loader; use function VeeWee\Xml\Xslt\Transformer\document_to_strin...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Transformer/Transformer.php
src/Xml/Xslt/Transformer/Transformer.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Transformer; use XSLTProcessor; /** * @template T */ interface Transformer { /** * @return T */ public function __invoke(XSLTProcessor $processor): mixed; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Transformer/document_to_string.php
src/Xml/Xslt/Transformer/document_to_string.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Transformer; use Closure; use VeeWee\Xml\Dom\Document; use XSLTProcessor; use function VeeWee\Xml\ErrorHandling\disallow_issues; use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns; /** * @return Closure(XSLTProcessor): string */ function do...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Loader/Loader.php
src/Xml/Xslt/Loader/Loader.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Loader; use XSLTProcessor; interface Loader { public function __invoke(XSLTProcessor $processor): void; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Loader/from_template_document.php
src/Xml/Xslt/Loader/from_template_document.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Dom\Mapper; use Closure; use VeeWee\Xml\Dom\Document; use XSLTProcessor; use function VeeWee\Xml\ErrorHandling\disallow_issues; use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns; /** * @return Closure(XSLTProcessor): void */ function from_templ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Configurator/Configurator.php
src/Xml/Xslt/Configurator/Configurator.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Configurator; use XSLTProcessor; interface Configurator { public function __invoke(XSLTProcessor $processor): XSLTProcessor; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Configurator/profiler.php
src/Xml/Xslt/Configurator/profiler.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Configurator; use Closure; use Webmozart\Assert\Assert; use XSLTProcessor; use function dirname; use function VeeWee\Xml\ErrorHandling\disallow_issues; use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns; /** * @param non-empty-string $profil...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Configurator/all_functions.php
src/Xml/Xslt/Configurator/all_functions.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Configurator; use Closure; use XSLTProcessor; /** * @return Closure(XSLTProcessor): XSLTProcessor */ function all_functions(): Closure { return static function (XSLTProcessor $processor): XSLTProcessor { $processor->registerPhpFunctions(); ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Configurator/loader.php
src/Xml/Xslt/Configurator/loader.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Configurator; use Closure; use XSLTProcessor; /** * @param callable(XSLTProcessor): void $loader * * @return Closure(XSLTProcessor): XSLTProcessor */ function loader(callable $loader): Closure { return static function (XSLTProcessor $processor) use ($...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Configurator/functions.php
src/Xml/Xslt/Configurator/functions.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Configurator; use Closure; use XSLTProcessor; /** * @param array<string, (callable(mixed...): mixed)> $functions * * @return Closure(XSLTProcessor): XSLTProcessor */ function functions(array $functions): Closure { return static function (XSLTProcessor...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Configurator/parameters.php
src/Xml/Xslt/Configurator/parameters.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Configurator; use Closure; use XSLTProcessor; use function VeeWee\Xml\ErrorHandling\disallow_issues; use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns; /** * @see https://github.com/php/php-src/blob/286f63809cc9d4fa422799b40d50a63fdaad92e1/...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Configurator/namespaced_functions.php
src/Xml/Xslt/Configurator/namespaced_functions.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Configurator; use Closure; use XSLTProcessor; /** * @param array<string, (callable(mixed...): mixed)> $functions * * @return Closure(XSLTProcessor): XSLTProcessor */ function namespaced_functions(string $namespace, array $functions): Closure { return ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xslt/Configurator/security_preferences.php
src/Xml/Xslt/Configurator/security_preferences.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xslt\Configurator; use Closure; use XSL_SECPREF_CREATE_DIRECTORY; use XSL_SECPREF_DEFAULT; use XSL_SECPREF_NONE; use XSL_SECPREF_READ_FILE; use XSL_SECPREF_READ_NETWORK; use XSL_SECPREF_WRITE_FILE; use XSL_SECPREF_WRITE_NETWORK; use XSLTProcessor; /** * @see http...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xmlns/Xmlns.php
src/Xml/Xmlns/Xmlns.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xmlns; /** * @psalm-immutable */ final class Xmlns { private string $xmlns; private function __construct(string $xmlns) { $this->xmlns = $xmlns; } /** * @psalm-pure */ public static function xmlns(): self { ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/document_encode.php
src/Xml/Encoding/document_encode.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding; use Dom\XMLDocument; use VeeWee\Xml\Dom\Document; use VeeWee\Xml\Encoding\Exception\EncodingException; use function VeeWee\Xml\Encoding\Internal\Encoder\Builder\normalize_data; use function VeeWee\Xml\Encoding\Internal\Encoder\Builder\root; use function V...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/xml_encode.php
src/Xml/Encoding/xml_encode.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding; use Dom\XMLDocument; use VeeWee\Xml\Encoding\Exception\EncodingException; use function VeeWee\Xml\Encoding\Internal\wrap_exception; /** * @param list<callable(XMLDocument): XMLDocument> $configurators * * @throws EncodingException */ function xml_enc...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/element_encode.php
src/Xml/Encoding/element_encode.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding; use Dom\XMLDocument; use VeeWee\Xml\Encoding\Exception\EncodingException; use function VeeWee\Xml\Dom\Locator\document_element; use function VeeWee\Xml\Dom\Mapper\xml_string; use function VeeWee\Xml\Encoding\Internal\wrap_exception; /** * @param list<ca...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/typed.php
src/Xml/Encoding/typed.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding; use Dom\XMLDocument; use Psl\Type\Exception\CoercionException; use Psl\Type\TypeInterface; use VeeWee\Xml\Encoding\Exception\EncodingException; /** * @template T * * @psalm-param non-empty-string $xml * @psalm-param TypeInterface<T> $type * @param l...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/xml_decode.php
src/Xml/Encoding/xml_decode.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding; use Dom\XMLDocument; use VeeWee\Xml\Dom\Document; use VeeWee\Xml\Encoding\Exception\EncodingException; use function VeeWee\Xml\Dom\Locator\document_element; use function VeeWee\Xml\Encoding\Internal\Decoder\Builder\element; use function VeeWee\Xml\Encodin...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/element_decode.php
src/Xml/Encoding/element_decode.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding; use Dom\Element; use Dom\XMLDocument; use VeeWee\Xml\Dom\Document; use VeeWee\Xml\Encoding\Exception\EncodingException; use function VeeWee\Xml\Dom\Locator\document_element; use function VeeWee\Xml\Encoding\Internal\Decoder\Builder\element; use function V...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/XmlSerializable.php
src/Xml/Encoding/XmlSerializable.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding; use JsonSerializable; use Stringable; /** * @psalm-type SupportedValue=scalar|Stringable|JsonSerializable|XmlSerializable */ interface XmlSerializable { /** * Transform an object into a value for making it XML serializable. * The iterable...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Exception/EncodingException.php
src/Xml/Encoding/Exception/EncodingException.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Exception; use Exception; use VeeWee\Xml\Exception\ExceptionInterface; final class EncodingException extends Exception implements ExceptionInterface { private function __construct(string $message, ?Exception $previous = null) { parent::__c...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/wrap_exception.php
src/Xml/Encoding/Internal/wrap_exception.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal; use Closure; use Exception; use VeeWee\Xml\Encoding\Exception\EncodingException; /** * @psalm-internal VeeWee\Xml\Encoding * * @template T * @param Closure(): T $run * @return T * * @throws EncodingException */ function wrap_exception(Cl...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Encoder/Builder/xmlns_inheriting_element.php
src/Xml/Encoding/Internal/Encoder/Builder/xmlns_inheriting_element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Encoder\Builder; use Closure; use Dom\Element; use Dom\XMLDocument; use Webmozart\Assert\Assert; use function VeeWee\Xml\Dom\Builder\default_xmlns_attribute; use function VeeWee\Xml\Dom\Builder\element as elementBuilder; use function VeeWee\Xml\Do...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Encoder/Builder/element.php
src/Xml/Encoding/Internal/Encoder/Builder/element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Encoder\Builder; use Closure; use Dom\Element; use Psl\Exception\InvariantViolationException; use Psl\Type\Exception\AssertException; use function Psl\Dict\filter_keys; use function Psl\Dict\map_with_key; use function Psl\Type\dict; use function P...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Encoder/Builder/is_node_list.php
src/Xml/Encoding/Internal/Encoder/Builder/is_node_list.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Encoder\Builder; use Psl\Exception\InvariantViolationException; use function Psl\Type\dict; use function Psl\Type\int; use function Psl\Type\mixed; /** * @psalm-internal VeeWee\Xml\Encoding * @throws InvariantViolationException */ function is_...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Encoder/Builder/parent_node.php
src/Xml/Encoding/Internal/Encoder/Builder/parent_node.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Encoder\Builder; use Closure; use Dom\Element; use Dom\Node; use Psl\Exception\InvariantViolationException; use Psl\Type\Exception\AssertException; use function VeeWee\Xml\Dom\Builder\children as buildChildren; use function VeeWee\Xml\Dom\Builder\...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Encoder/Builder/root.php
src/Xml/Encoding/Internal/Encoder/Builder/root.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Encoder\Builder; use Closure; use Dom\Node; use Dom\XMLDocument; use Psl\Exception\InvariantViolationException; use VeeWee\Xml\Encoding\Exception\EncodingException; use function Psl\Dict\map_with_key; use function VeeWee\Xml\Dom\Builder\nodes; /*...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Encoder/Builder/normalize_data.php
src/Xml/Encoding/Internal/Encoder/Builder/normalize_data.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Encoder\Builder; use JsonSerializable; use Psl\Type\Exception\CoercionException; use VeeWee\Xml\Encoding\XmlSerializable; use function Psl\Dict\map; use function Psl\Type\string; /** * @psalm-internal VeeWee\Xml\Encoding * * @template T * @pa...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Encoder/Builder/children.php
src/Xml/Encoding/Internal/Encoder/Builder/children.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Encoder\Builder; use Closure; use Dom\Element; use function Psl\Dict\map; use function VeeWee\Xml\Dom\Builder\children as buildChildren; use function VeeWee\Xml\Dom\Builder\value; /** * @psalm-internal VeeWee\Xml\Encoding * * @psalm-suppress L...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Decoder/Builder/attribute.php
src/Xml/Encoding/Internal/Decoder/Builder/attribute.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Decoder\Builder; use Dom\Attr; /** * @psalm-internal VeeWee\Xml\Encoding */ function attribute(Attr $attribute): array { return [ name($attribute) => $attribute->nodeValue, ]; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Decoder/Builder/name.php
src/Xml/Encoding/Internal/Decoder/Builder/name.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Decoder\Builder; use Dom\Node; /** * @psalm-internal VeeWee\Xml\Encoding */ function name(Node $node): string { return $node->nodeName; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Decoder/Builder/element.php
src/Xml/Encoding/Internal/Decoder/Builder/element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Decoder\Builder; use Dom\Element; use VeeWee\Xml\Exception\RuntimeException; use function Psl\Dict\filter; use function Psl\Dict\merge; /** * @psalm-internal VeeWee\Xml\Encoding * @return array<string, string|array> * @throws RuntimeException ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Decoder/Builder/group_child_elements.php
src/Xml/Encoding/Internal/Decoder/Builder/group_child_elements.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Decoder\Builder; use Dom\Element; use function VeeWee\Xml\Dom\Locator\Element\children; /** * @psalm-type GroupedElements=array<string, Element|list<Element>> * @psalm-internal VeeWee\Xml\Encoding * @return GroupedElements */ function group_c...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Decoder/Builder/attributes.php
src/Xml/Encoding/Internal/Decoder/Builder/attributes.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Decoder\Builder; use Dom\Attr; use Dom\Element; use function Psl\Dict\filter; use function Psl\Dict\merge; use function Psl\Iter\reduce; use function VeeWee\Xml\Dom\Locator\Attribute\attributes_list; use function VeeWee\Xml\Dom\Predicate\is_xmlns_...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Decoder/Builder/namespaces.php
src/Xml/Encoding/Internal/Decoder/Builder/namespaces.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Decoder\Builder; use Dom\Attr; use Dom\Element; use VeeWee\Xml\Exception\RuntimeException; use function Psl\Dict\filter; use function Psl\Dict\merge; use function VeeWee\Xml\Dom\Locator\Attribute\xmlns_attributes_list; /** * @psalm-internal VeeW...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Decoder/Builder/unwrap_element.php
src/Xml/Encoding/Internal/Decoder/Builder/unwrap_element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Decoder\Builder; use function Psl\Iter\first; /** * @psalm-internal VeeWee\Xml\Encoding * * @param array<array-key, string|array> $element */ function unwrap_element(array $element): array|string { return first($element) ?? '*UNKNOWN*'; }...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Encoding/Internal/Decoder/Builder/grouped_children.php
src/Xml/Encoding/Internal/Decoder/Builder/grouped_children.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Encoding\Internal\Decoder\Builder; use Dom\Element; use function Psl\Dict\map; use function Psl\Dict\merge; use function Psl\Iter\reduce_with_keys; /** * @psalm-internal VeeWee\Xml\Encoding * */ function grouped_children(Element $element): array { return re...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Reader.php
src/Xml/Reader/Reader.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader; use Generator; use VeeWee\Xml\Exception\RuntimeException; use VeeWee\Xml\Reader\Node\AttributeNode; use VeeWee\Xml\Reader\Node\ElementNode; use VeeWee\Xml\Reader\Node\NodeSequence; use VeeWee\Xml\Reader\Node\Pointer; use XMLReader; use function VeeWee\Xml\E...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Signal.php
src/Xml/Reader/Signal.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader; final class Signal { private bool $stopRequested = false; public function stop(): void { $this->stopRequested = true; } public function stopRequested(): bool { return $this->stopRequested; } }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/MatchingNode.php
src/Xml/Reader/MatchingNode.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader; use Dom\XMLDocument; use VeeWee\Xml\Dom\Document; use VeeWee\Xml\Encoding\Exception\EncodingException; use VeeWee\Xml\Exception\RuntimeException; use VeeWee\Xml\Reader\Node\NodeSequence; use function VeeWee\Xml\Encoding\xml_decode; final class MatchingNode ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Node/AttributeNode.php
src/Xml/Reader/Node/AttributeNode.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Node; use XMLReader; /** * @psalm-immutable */ final class AttributeNode { public function __construct( public string $name, public string $localName, public string $namespace, public string $namespaceAlias, pub...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Node/Pointer.php
src/Xml/Reader/Node/Pointer.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Node; use InvalidArgumentException; use Webmozart\Assert\Assert; final class Pointer { /** * @var array<int, int> */ private array $siblingsPerDepth; private int $depth; private NodeSequence $nodeSequence; private function _...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Node/ElementNode.php
src/Xml/Reader/Node/ElementNode.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Node; use XMLReader; /** * @psalm-immutable */ final class ElementNode { /** * @param list<AttributeNode> $attributes */ public function __construct( public int $position, public string $name, public string $local...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Node/NodeSequence.php
src/Xml/Reader/Node/NodeSequence.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Node; use Countable; use Generator; use InvalidArgumentException; use Webmozart\Assert\Assert; use function count; use function Psl\Vec\slice; final class NodeSequence implements Countable { /** * @var list<ElementNode> */ private array $e...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Loader/Loader.php
src/Xml/Reader/Loader/Loader.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Loader; use XMLReader; interface Loader { public function __invoke(): XMLReader; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Loader/xml_file_loader.php
src/Xml/Reader/Loader/xml_file_loader.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Loader; use Closure; use Webmozart\Assert\Assert; use XMLReader; use function VeeWee\Xml\ErrorHandling\disallow_issues; /** * @return Closure(): XMLReader */ function xml_file_loader(string $file, ?string $encoding = null, int $flags = 0): Closure { r...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Loader/xml_stream_loader.php
src/Xml/Reader/Loader/xml_stream_loader.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Loader; use Closure; use XMLReader; use function VeeWee\Xml\ErrorHandling\disallow_issues; /** * @param resource $stream * @return Closure(): XMLReader */ function xml_stream_loader(mixed $stream, ?string $encoding = null, int $flags = 0, ?string $docume...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Loader/xml_string_loader.php
src/Xml/Reader/Loader/xml_string_loader.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Loader; use Closure; use Webmozart\Assert\Assert; use XMLReader; use function VeeWee\Xml\ErrorHandling\disallow_issues; /** * @return Closure(): XMLReader */ function xml_string_loader(string $xml, ?string $encoding = null, int $flags = 0): Closure { ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/attribute_name.php
src/Xml/Reader/Matcher/attribute_name.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\AttributeNode; use VeeWee\Xml\Reader\Node\NodeSequence; use function Psl\Iter\any; /** * @return Closure(NodeSequence): bool */ function attribute_name(string $name): Closure { return static function (N...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/attribute_local_name.php
src/Xml/Reader/Matcher/attribute_local_name.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\AttributeNode; use VeeWee\Xml\Reader\Node\NodeSequence; use function Psl\Iter\any; /** * @return Closure(NodeSequence): bool */ function attribute_local_name(string $localName): Closure { return static ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/all.php
src/Xml/Reader/Matcher/all.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use Psl\Iter; use VeeWee\Xml\Reader\Node\NodeSequence; /** * @param list<callable(NodeSequence): bool> $matchers * * @return Closure(NodeSequence): bool */ function all(callable ... $matchers): Closure { return static fn (NodeS...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/nested.php
src/Xml/Reader/Matcher/nested.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\NodeSequence; use function array_shift; /** * A nested matcher can be used to match parts of an XML path in order to detect node you are interested in. * Every match will create some kind of breakpoint of w...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/any.php
src/Xml/Reader/Matcher/any.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use Psl\Iter; use VeeWee\Xml\Reader\Node\NodeSequence; /** * @param list<callable(NodeSequence): bool> $matchers * * @return Closure(NodeSequence): bool */ function any(callable ... $matchers): Closure { return static fn (NodeS...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/not.php
src/Xml/Reader/Matcher/not.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\NodeSequence; /** * @param callable(NodeSequence): bool $matcher * * @return Closure(NodeSequence): bool */ function not(callable $matcher): Closure { return static fn (NodeSequence $sequence): bool =...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/namespaced_attribute_value.php
src/Xml/Reader/Matcher/namespaced_attribute_value.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\AttributeNode; use VeeWee\Xml\Reader\Node\NodeSequence; use function Psl\Iter\any; /** * @return Closure(NodeSequence): bool */ function namespaced_attribute_value(string $namespace, string $localName, stri...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/element_local_name.php
src/Xml/Reader/Matcher/element_local_name.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\NodeSequence; /** * @return Closure(NodeSequence): bool */ function element_local_name(string $localName): Closure { return static function (NodeSequence $sequence) use ($localName): bool { retu...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/Matcher.php
src/Xml/Reader/Matcher/Matcher.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use VeeWee\Xml\Reader\Node\NodeSequence; interface Matcher { public function __invoke(NodeSequence $nodeSequence): bool; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/attribute_local_value.php
src/Xml/Reader/Matcher/attribute_local_value.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\AttributeNode; use VeeWee\Xml\Reader\Node\NodeSequence; use function Psl\Iter\any; /** * @return Closure(NodeSequence): bool */ function attribute_local_value(string $localName, string $value): Closure { ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/namespaced_attribute.php
src/Xml/Reader/Matcher/namespaced_attribute.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\AttributeNode; use VeeWee\Xml\Reader\Node\NodeSequence; use function Psl\Iter\any; /** * @return Closure(NodeSequence): bool */ function namespaced_attribute(string $namespace, string $localName): Closure {...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/document_element.php
src/Xml/Reader/Matcher/document_element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\NodeSequence; /** * @return Closure(NodeSequence): bool */ function document_element(): Closure { return static function (NodeSequence $sequence): bool { return !$sequence->parent(); }; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/element_name.php
src/Xml/Reader/Matcher/element_name.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\NodeSequence; /** * @return Closure(NodeSequence): bool */ function element_name(string $name): Closure { return static function (NodeSequence $sequence) use ($name): bool { return $sequence->cu...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/element_position.php
src/Xml/Reader/Matcher/element_position.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\NodeSequence; /** * @return Closure(NodeSequence): bool */ function element_position(int $position): Closure { return static function (NodeSequence $sequence) use ($position): bool { return $seq...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/attribute_value.php
src/Xml/Reader/Matcher/attribute_value.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\AttributeNode; use VeeWee\Xml\Reader\Node\NodeSequence; use function Psl\Iter\any; /** * @return Closure(NodeSequence): bool */ function attribute_value(string $name, string $value): Closure { return st...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/sequence.php
src/Xml/Reader/Matcher/sequence.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\NodeSequence; use function count; /** * A sequence can be used to match a full XML path to the node you are interested in. * * ```php * sequence(element_name('root'), all(element_name('item'), element_pos...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Matcher/namespaced_element.php
src/Xml/Reader/Matcher/namespaced_element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Matcher; use Closure; use VeeWee\Xml\Reader\Node\NodeSequence; /** * @return Closure(NodeSequence): bool */ function namespaced_element(string $namespace, string $localName): Closure { return static function (NodeSequence $sequence) use ($namespace, $...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Configurator/Configurator.php
src/Xml/Reader/Configurator/Configurator.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Configurator; use XMLReader; interface Configurator { public function __invoke(XMLReader $reader): XMLReader; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Configurator/substitute_entities.php
src/Xml/Reader/Configurator/substitute_entities.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Configurator; use Closure; use XMLReader; /* * @return \Closure(XMLReader): XMLReader */ function substitute_entities(bool $flag = true): Closure { return static fn (XMLReader $reader): XMLReader => parser_options([ XMLReader::SUBST_ENTITIES =...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Configurator/xsd_schema.php
src/Xml/Reader/Configurator/xsd_schema.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Configurator; use Closure; use Webmozart\Assert\Assert; use XMLReader; use function VeeWee\Xml\ErrorHandling\disallow_issues; use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns; /** * @return Closure(XMLReader): XMLReader */ function xsd_...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Reader/Configurator/parser_options.php
src/Xml/Reader/Configurator/parser_options.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Reader\Configurator; use Closure; use XMLReader; use function VeeWee\Xml\ErrorHandling\disallow_issues; use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns; /** * \XMLReader::LOADDTD * Load DTD but do not validate * * \XMLReader::DEFAULTATTRS ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xsd/Schema/Schema.php
src/Xml/Xsd/Schema/Schema.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xsd\Schema; /** * @psalm-immutable */ final class Schema { private function __construct( private ?string $namespace, private string $location ) { } public static function withoutNamespace(string $location): self { retu...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xsd/Schema/SchemaCollection.php
src/Xml/Xsd/Schema/SchemaCollection.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xsd\Schema; use Countable; use IteratorAggregate; use Traversable; use function Psl\Vec\filter; use function Psl\Vec\map; /** * * @psalm-immutable * @template-implements IteratorAggregate<int, Schema> */ final class SchemaCollection implements Countable, Itera...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xsd/Schema/Manipulator/base_path.php
src/Xml/Xsd/Schema/Manipulator/base_path.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xsd\Schema\Manipulator; use Closure; use VeeWee\Xml\Xsd\Schema\Schema; use VeeWee\Xml\Xsd\Schema\SchemaCollection; use function strlen; use const PHP_URL_SCHEME; /** * * @return Closure(SchemaCollection): SchemaCollection */ function base_path(string $basePath)...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xsd/Schema/Manipulator/Manipulator.php
src/Xml/Xsd/Schema/Manipulator/Manipulator.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xsd\Schema\Manipulator; use VeeWee\Xml\Xsd\Schema\SchemaCollection; interface Manipulator { public function __invoke(SchemaCollection $schemaCollection): SchemaCollection; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Xsd/Schema/Manipulator/overwrite_with_local_files.php
src/Xml/Xsd/Schema/Manipulator/overwrite_with_local_files.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Xsd\Schema\Manipulator; use Closure; use VeeWee\Xml\Xsd\Schema\Schema; use VeeWee\Xml\Xsd\Schema\SchemaCollection; /** * @param array<string, string> $map - Key=namspace, value=location * * @return Closure(SchemaCollection): SchemaCollection */ function overwr...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Exception/ExceptionInterface.php
src/Xml/Exception/ExceptionInterface.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Exception; use Throwable; interface ExceptionInterface extends Throwable { }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Exception/RuntimeException.php
src/Xml/Exception/RuntimeException.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Exception; use Throwable; use VeeWee\Xml\ErrorHandling\Issue\IssueCollection; final class RuntimeException extends \RuntimeException implements ExceptionInterface { private function __construct(string $message, ?Throwable $previous = null) { parent...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Internal/configure.php
src/Xml/Internal/configure.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Internal; use Closure; use Psl\Iter; /** * @psalm-internal \Veewee\Xml * * Performs left-to-right function composition. * A copy os Psl\Fun\Pipe that expects the type to be the same during all pipes. * (The current psalm pipe plugin doesn't work well with gene...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Writer.php
src/Xml/Writer/Writer.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer; use Generator; use VeeWee\Xml\Exception\RuntimeException; use XMLWriter; use function VeeWee\Xml\ErrorHandling\disallow_issues; use function VeeWee\Xml\ErrorHandling\disallow_libxml_false_returns; use function VeeWee\Xml\Internal\configure; use function Vee...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Applicative/Applicative.php
src/Xml/Writer/Applicative/Applicative.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Applicative; use XMLWriter; interface Applicative { public function __invoke(XMLWriter $writer): mixed; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Applicative/flush.php
src/Xml/Writer/Applicative/flush.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Applicative; use Closure; use XMLWriter; /** * @param bool $empty - Whether to empty the buffer or not. * * @return Closure(XMLWriter): mixed */ function flush(bool $empty = true): Closure { return static function (XMLWriter $writer) use ($empty): v...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/prefixed_attribute.php
src/Xml/Writer/Builder/prefixed_attribute.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @return Closure(XMLWriter): Generator<bool> */ function prefixed_attribute(string $prefix, string $name, string $value): Closure { return /** * @return Generator<bool> ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/attribute.php
src/Xml/Writer/Builder/attribute.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @return Closure(XMLWriter): Generator<bool> */ function attribute(string $name, string $value): Closure { return /** * @return Generator<bool> */ static functi...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/raw.php
src/Xml/Writer/Builder/raw.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @return Closure(XMLWriter): Generator<bool> */ function raw(string $value): Closure { return /** * @return Generator<bool> */ static function (XMLWriter $write...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/Builder.php
src/Xml/Writer/Builder/Builder.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Generator; use XMLWriter; interface Builder { /** * @return Generator<bool> */ public function __invoke(XMLWriter $writer): Generator; }
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/element.php
src/Xml/Writer/Builder/element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @param list<(callable(XMLWriter): Generator<bool>)> $configurators * * @return Closure(XMLWriter): Generator<bool> */ function element(string $name, callable ...$configurators): Closure { ret...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/comment.php
src/Xml/Writer/Builder/comment.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @param list<(callable(XMLWriter): Generator<bool>)> $configurators * * @return Closure(XMLWriter): Generator<bool> */ function comment(callable ...$configurators): Closure { return /*...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/namespaced_attribute.php
src/Xml/Writer/Builder/namespaced_attribute.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @return Closure(XMLWriter): Generator<bool> */ function namespaced_attribute(string $namespace, ?string $prefix, string $name, string $value): Closure { return /** * @return Ge...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/attributes.php
src/Xml/Writer/Builder/attributes.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @param array<string, string> $attributes * @return Closure(XMLWriter): Generator<bool> */ function attributes(array $attributes): Closure { return /** * @return Generator<bool...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/namespace_attribute.php
src/Xml/Writer/Builder/namespace_attribute.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @param non-empty-string|null $prefix * @return Closure(XMLWriter): Generator<bool> */ function namespace_attribute(string $namespace, ?string $prefix = null): Closure { return /** ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/namespaced_attributes.php
src/Xml/Writer/Builder/namespaced_attributes.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @param array<string, string> $attributes * @return Closure(XMLWriter): Generator<bool> */ function namespaced_attributes(string $namespace, array $attributes): Closure { return /** ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/cdata.php
src/Xml/Writer/Builder/cdata.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @param list<(callable(XMLWriter): Generator<bool>)> $configurators * * @return Closure(XMLWriter): Generator<bool> */ function cdata(callable ...$configurators): Closure { return /** ...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/document.php
src/Xml/Writer/Builder/document.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @param list<(callable(XMLWriter): Generator<bool>)> $configurators * * @return Closure(XMLWriter): Generator<bool> */ function document(string $version, string $charset, callable ... $configurato...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/prefixed_attributes.php
src/Xml/Writer/Builder/prefixed_attributes.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; use function VeeWee\Xml\Assertion\assert_strict_prefixed_name; /** * @param array<string, string> $attributes * @return Closure(XMLWriter): Generator<bool> */ function prefixed_attributes(array $attribu...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false
veewee/xml
https://github.com/veewee/xml/blob/94238593d0b7d161f29cfaecfa52c346a54624d6/src/Xml/Writer/Builder/namespaced_element.php
src/Xml/Writer/Builder/namespaced_element.php
<?php declare(strict_types=1); namespace VeeWee\Xml\Writer\Builder; use Closure; use Generator; use XMLWriter; /** * @param list<(callable(XMLWriter): Generator<bool>)> $configurators * * @return Closure(XMLWriter): Generator<bool> */ function namespaced_element(string $namespace, ?string $prefix, string $name,...
php
MIT
94238593d0b7d161f29cfaecfa52c346a54624d6
2026-01-05T03:09:54.502498Z
false