Download the PHP package richarddobron/dom-forge without Composer
On this page you can find all versions of the php package richarddobron/dom-forge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download richarddobron/dom-forge
More information about richarddobron/dom-forge
Files in richarddobron/dom-forge
Download richarddobron/dom-forge
More information about richarddobron/dom-forge
Files in richarddobron/dom-forge
Vendor richarddobron
Package dom-forge
Short Description Lightweight PHP library for parsing and manipulating HTML documents.
License MIT
Package dom-forge
Short Description Lightweight PHP library for parsing and manipulating HTML documents.
License MIT
Please rate this library. Is it a good library?
Informations about the package dom-forge
Lightweight PHP library for parsing and manipulating HTML documents.
๐ Requirements
- PHP 7.0 or higher
- Composer is required for installation
- PHP Extensions:
iconv,ext-mbstring
๐ฆ Installation
Install the library using Composer:
โก๏ธ Quick Start
Creating DomForge Instance
Finding Elements
Getting Content
Setting Content
Creating Elements
DOM Manipulation
Working with Attributes
Node Type Checking
Traversing Nodes
Lookup Methods
Callbacks
Saving Output
โ๏ธ Configuration Options
You can customize the library with the following methods:
| Method | Description | Default |
|---|---|---|
setTargetCharset(string $targetCharset) |
Sets the target character set for the HTML content. | 'UTF-8' |
setLowercase(bool $lowercase) |
Enables or disables converting tag and attribute names to lowercase. | true |
setForceTagsClosed(bool $forceTagsClosed) |
Enables or disables forcing all tags to be closed. | true |
setRemoveLineBreaks(bool $removeLineBreaks) |
Enables or disables stripping of \r and \n characters from the HTML content. |
false |
setDefaultBrText(string $defaultBrText) |
Sets the default text to use for <br> tags. |
"\n" |
setDefaultSpanText(string $defaultSpanText) |
Sets the default text to use for <span> tags. |
'' |
setSelfClosingTags(array $selfClosingTags) |
Sets the extra list of self-closing tags. | null |
๐ Change Log
Please see CHANGELOG for more information on what has changed recently.
๐งช Testing
๐ค Contributing
Please see CONTRIBUTING for details.
โ๏ธ License
This repository is MIT licensed, as found in the LICENSE file.
All versions of dom-forge with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1 || ^8.0
ext-iconv Version *
ext-mbstring Version *
ext-iconv Version *
ext-mbstring Version *
The package richarddobron/dom-forge contains the following files
Loading the files please wait ...