DOM Handler provides handful methods to manipulate/browse a DOM Document.
DomHandler uses the decorator design pattern in order to ease DOM handling.
The source code has been originally created into the PackageGenerator project but it felt that it had the possibility to live by itself and to evolve independtly from the PackageGenerator project if necessary.
Testing using Docker
Thanks to the Docker image of phpfarm, tests can be run locally under any PHP version using the cli:
- php-7.4
First of all, you need to create your container which you can do using docker-compose by running the below command line from the root directory of the project:
$ docker-compose up -d --buildYou then have a container named dom_handler in which you can run composer commands and php cli commands such as:
# install deps in container (using update ensure it does use the composer.lock file if there is any)
$ docker exec -it dom_handler php-7.4 /usr/bin/composer update
# run tests in container
$ docker exec -it dom_handler php-7.4 -dmemory_limit=-1 vendor/bin/phpunitPlease see CONTRIBUTING for details.
Developers who helped on this project are listed in the composer.json file as Contributor and are:
Feel free to create an issue.
The MIT License (MIT). Please see License File for more information.


