lum / simpledom-functional
Legacy global functions for SimpleDOM
v3.1.0
2022-05-02 17:18 UTC
Requires
- lum/simpledom: ^3.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-10-30 01:42:58 UTC
README
Summary
The simpledom_*
global functions for SimpleDOM
Description
Versions of SimpleDOM prior to 3.0 exported these global functions automatically. As of version 3.0, the main library has moved to using static class methods instead. For legacy code still using the global functions, this package adds them back.
It's obviously not a standalone package, but an extension of SimpleDOM.
Functions
simpledom_load_file(string $filename): ?SimpleDOM; // see simplexml_load_file() simpledom_load_string(string $string): ?SimpleDOM; // see simplexml_load_string() simpledom_import_dom(object $dom): ?SimpleDOM; // see simplexml_import_dom() simpledom_import_simplexml(object $simplexml): ?SimpleDOM;
Tests
Run make test
to run the tests using PHPUnit.