Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wsdltophp/domhandler
Decorative design pattern to ease DOM handling
https://github.com/wsdltophp/domhandler
decorator decorator-pattern dom dom-handler domhandler php-library xml
Last synced: about 2 months ago
JSON representation
Decorative design pattern to ease DOM handling
- Host: GitHub
- URL: https://github.com/wsdltophp/domhandler
- Owner: WsdlToPhp
- License: mit
- Created: 2017-04-11T20:48:47.000Z (almost 8 years ago)
- Default Branch: develop
- Last Pushed: 2022-12-23T13:07:58.000Z (about 2 years ago)
- Last Synced: 2024-11-23T00:14:36.653Z (2 months ago)
- Topics: decorator, decorator-pattern, dom, dom-handler, domhandler, php-library, xml
- Language: PHP
- Homepage:
- Size: 88.9 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# DOM Handler
> DOM Handler provides handful methods to manipulate/browse a DOM Document.
[![License](https://poser.pugx.org/wsdltophp/domhandler/license)](https://packagist.org/packages/wsdltophp/domhandler)
[![Latest Stable Version](https://poser.pugx.org/wsdltophp/domhandler/version.png)](https://packagist.org/packages/wsdltophp/domhandler)
[![TeamCity build status](https://teamcity.mikael-delsol.fr/app/rest/builds/buildType:id:WsdlHandler_Build/statusIcon.svg)](https://github.com/WsdlToPhp/DomHandler)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/badges/quality-score.png)](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/)
[![Code Coverage](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/badges/coverage.png)](https://scrutinizer-ci.com/g/WsdlToPhp/DomHandler/)
[![Total Downloads](https://poser.pugx.org/wsdltophp/domhandler/downloads)](https://packagist.org/packages/wsdltophp/domhandler)
[![StyleCI](https://styleci.io/repos/87977980/shield)](https://styleci.io/repos/87977980)
[![SymfonyInsight](https://insight.symfony.com/projects/93e73feb-60bc-4e99-a3ce-87e537c61fed/mini.svg)](https://insight.symfony.com/projects/93e73feb-60bc-4e99-a3ce-87e537c61fed)DomHandler uses the [decorator design pattern](https://en.wikipedia.org/wiki/Decorator_pattern) in order to ease DOM handling.
The source code has been originally created into the [PackageGenerator](https://github.com/WsdlToPhp/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](https://www.docker.com/)
Thanks to the [Docker image](https://hub.docker.com/r/splitbrain/phpfarm) of [phpfarm](https://github.com/fpoirotte/phpfarm), tests can be run locally under *any* PHP version using the cli:
- php-7.4First of all, you need to create your container which you can do using [docker-compose](https://docs.docker.com/compose/) by running the below command line from the root directory of the project:
```bash
$ 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:
```bash
# 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](.github/CONTRIBUTING.md) for details.
## Credits
Developers who helped on this project are listed in the [composer.json](composer.json#L8) file as `Contributor` and are:
- [phordijk](https://github.com/phordijk)## FAQ
Feel free to [create an issue](https://github.com/WsdlToPhp/DomHandler/issues/new).
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.