Skip to content

WsdlToPhp/DomHandler

Repository files navigation

DOM Handler

DOM Handler provides handful methods to manipulate/browse a DOM Document.

License Latest Stable Version TeamCity build status Scrutinizer Code Quality Code Coverage Total Downloads StyleCI SymfonyInsight

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.