stoatally / dom
Life improving enhancements to the standard PHP DOM.
Installs: 312
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/stoatally/dom
Requires
- php: >=7.1.0
This package is not auto-updated.
Last update: 2025-10-11 03:53:04 UTC
README
Life improving enhancements to the standard PHP DOM.
Install
The recommended way to install Text Expressions is through composer.
{ "require": { "stoatally/dom": "0.*" } }
Usage
Create a document factory:
use Stoatally\Dom\DocumentFactory; $factory = new DocumentFactory();
Set the text content of a node:
$document = $factory->createFromString('<p/>'); $document->select('p')->setContents('PHP <3'); // > <p>PHP <3</p>
For more comprehensive examples see the examples and tests directories.