Download the PHP package arturaskaukenas/dom without Composer

On this page you can find all versions of the php package arturaskaukenas/dom. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dom

PHP XML and HTML Parsing and Managing Library

License

This software's source files are licensed under the Apache-2.0 license.

SPDX-License-Identifier: Apache-2.0

Description

This library is built on top of PHP's SAX parser, offering a flexible way to process and manipulate XML and HTML data. By leveraging the advantages of the SAX parser, it efficiently parses huge files by processing them in chunks, minimizing memory usage. It provides a structured approach to parsing, managing, and transforming both XML and HTML documents, supporting attributes, child elements, and customizable data handling.

Main Features

Installation

Using Composer

Manual Inclusion

Replace {path_to_library} with the actual path to the library's source files.

Examples

Basic parsing

Working with elements

Chunk parsing

Templated element with processors and validators

Classes

Node Class

The Node class is an abstract representation of a DOM node, implementing the INode interface.

Properties


INode Interface

INode extends INodeBasic and INodeActions and provides methods to define and manage expected values, templates, and processing rules for child elements.

Methods

expects

setExpectedObject

setExpectedValue

useDataParser

setIgnoreChildren

setIgnoreChildrenIfNotExists

setDataAsChildren

expectedElementExists

setExpectedElement

__get

__set

__isset

INodeActions Interface

INodeActions defines methods for managing attributes, navigating child nodes, and handling node content.

Methods

hasAttributes

hasAttribute

getAttributeNames

getAttribute

setAttribute

removeAttribute

getChild

currentChild

nextChild

iterateChild

endChild

resetChild

getElementsByTagName

getElementById

getTextContents

setTextContents

getInner

setInner

INodeBasic Interface

INodeBasic defines the basic operations for a node, such as managing attributes, appending and removing child nodes, and setting a parser instance.

Methods

setName

setAttributes

appendChild

removeChild

remove

cleanChildren

setParser

getExpected

XML\INode Interface

XML\INode extends INode and provides additional methods to manage XML-specific content for the node.

Methods

getInner

getInnerXML

setInner

setInnerXML

IParser Interface

IParser represents a parser.

Methods

init

parse

finalize

errorsExists

getErrors

clean

registerNode

isNodeRegistered

onFinalizeNode

Expected Class

The Expected class represents the expected properties of a node, including its name, type, validation, processing, and prototype settings.

Properties

Methods

__construct

typeOf

preValidate

process

validate

prototypeOfClassName

prototypeOfObject

Вот преобразованный PHP код в формат Markdown с учётом комментариев:

NodeDataTypes Class

The NodeDataTypes class defines constants representing different data types for node properties.

Constants

Methods

getTypeName


All versions of dom with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
ext-xml Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package arturaskaukenas/dom contains the following files

Loading the files please wait ....