Releases: veewee/xml
Releases · veewee/xml
Version 2.3.0
Version 2.2.0
Version 2.1.0
What's Changed
Full Changelog: 2.0.0...2.1.0
Version 2.0.0
What's Changed
- Introduce PHP82 + PSL2 support by @veewee in #40
- Use PHP code in composer scripts by @szepeviktor in #39
❗Support ❗
- PSL2 is added to xml v2 and won't be added to xml v1
- PHP 80 support got dropped in v2
- PHP 82 support got introduced in xml v2 and won't be added to xml v1
Version 1.7.0
❗Warning ❗
What's Changed
- Fix DOM.phpstub by @szepeviktor in #35
- Make stub files appear PHP code by @szepeviktor in #33
- Check code style of all PHP files by @szepeviktor in #34
- Enable cron checks by @veewee in #38
New Contributors
- @szepeviktor made their first contribution in #35
Full Changelog: 1.6.0...1.7.0
Release 1.6.0
What's Changed
$element = [
'Lorem' => 'Ipsum',
];
element_encode($element);
Output
<Lorem>Ipsum</Lorem>
New Contributors
Full Changelog: 1.5.0...1.6.0
1.5.0
What's Changed
final class SecurityLocator
{
public function __invoke(Document $document): \DOMElement
{
return assert_element(
$document->xpath(new WssePreset($document))
->querySingle('/wssoap:Envelope/wssoap:Header/wswsse:Security')
);
}
}
Full Changelog: v1.4.0...1.5.0
Version 1.4.0
What's Changed
- Improve decoding and encoding falsy values by @veewee and @bastien-phi in #29
Full Changelog: v1.3.0...v1.4.0
v1.3.0
What's Changed
Examples
Use-case of above 2 features: You want to search for some data in SOAP, but decode it as an array afterwards - without any namespace info or prefix:
use VeeWee\Xml\Dom\Document;
use VeeWee\Xml\Dom\Traverser\Visitor\RemoveNamespaces;
use function VeeWee\Xml\Dom\Configurator\traverse;
use function VeeWee\Xml\Encoding\element_decode;
$doc = Document::fromXmlString(<<<EOXML
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<soap:Body xmlns:m="http://www.example.org/stock">
<m:GetStockPrice>
<m:StockName>IBM</m:StockName>
</m:GetStockPrice>
</soap:Body>
</soap:Envelope>
EOXML
);
$method = $doc->xpath()->querySingle('//soap:Body')->firstElementChild;
var_dump(element_decode($method, traverse(new RemoveNamespaces())));
array(1) {
'GetStockPrice' =>
array(1) {
'StockName' =>
string(3) "IBM"
}
}
Full Changelog: v1.2.0...v1.3.0
Version 1.2.0
What's Changed
Full Changelog: v1.1.1...v1.2.0