Life improving enhancements to the standard PHP DOM.

Maintainers

Details

github.com/stoatally/dom

Source

Issues

Installs: 312

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/stoatally/dom

v0.3 2017-11-23 08:28 UTC

This package is not auto-updated.

Last update: 2025-10-11 03:53:04 UTC


README

Life improving enhancements to the standard PHP DOM.

Build Status

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 &lt;3</p>

For more comprehensive examples see the examples and tests directories.