wsdltophp / domhandler
Decorative design pattern to ease DOM handling
Installs: 1 264 420
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 2
Forks: 0
Open Issues: 1
Requires
- php: >=7.4
- ext-dom: *
Requires (Dev)
- friendsofphp/php-cs-fixer: ~3.0
- phpstan/phpstan: ^1.4
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-10-23 17:04:19 UTC
README
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 --build
You 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/phpunit
Contributing
Please see CONTRIBUTING for details.
Credits
Developers who helped on this project are listed in the composer.json file as Contributor
and are:
FAQ
Feel free to create an issue.
License
The MIT License (MIT). Please see License File for more information.