{"id":25172941,"url":"https://github.com/sclable/xml-lint","last_synced_at":"2025-04-05T23:12:15.770Z","repository":{"id":1768747,"uuid":"44527291","full_name":"sclable/xml-lint","owner":"sclable","description":"A php tool to lint and validate xml files from the commandline.","archived":false,"fork":false,"pushed_at":"2024-11-06T18:42:01.000Z","size":175,"stargazers_count":21,"open_issues_count":9,"forks_count":10,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-29T22:11:12.886Z","etag":null,"topics":["cli","commandline","composer","php","xml-files","xml-schema","xmllint","xsd"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sclable.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-10-19T10:25:57.000Z","updated_at":"2025-03-27T19:33:53.000Z","dependencies_parsed_at":"2023-12-26T09:01:24.533Z","dependency_job_id":"4a04182f-ff41-4568-8a3f-d5539121a457","html_url":"https://github.com/sclable/xml-lint","commit_stats":{"total_commits":53,"total_committers":6,"mean_commits":8.833333333333334,"dds":0.2264150943396226,"last_synced_commit":"a2babc4f640baecdd2f0b2b734ac92c8ea3b5b15"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclable%2Fxml-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclable%2Fxml-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclable%2Fxml-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sclable%2Fxml-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sclable","download_url":"https://codeload.github.com/sclable/xml-lint/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411239,"owners_count":20934653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","commandline","composer","php","xml-files","xml-schema","xmllint","xsd"],"created_at":"2025-02-09T10:18:51.609Z","updated_at":"2025-04-05T23:12:15.746Z","avatar_url":"https://github.com/sclable.png","language":"PHP","readme":"Sclable XML Lint\n================\n\nA php tool to lint and validate xml files from the commandline.\n\n[![Build Status](https://travis-ci.com/sclable/xml-lint.svg?branch=main)](https://travis-ci.com/sclable/xml-lint) [![Latest Stable Version](https://poser.pugx.org/sclable/xml-lint/v)](//packagist.org/packages/sclable/xml-lint) [![Total Downloads](https://poser.pugx.org/sclable/xml-lint/downloads)](//packagist.org/packages/sclable/xml-lint) [![License](https://poser.pugx.org/sclable/xml-lint/license)](//packagist.org/packages/sclable/xml-lint)\n\nXML Lint checks the syntax of any xml files and validates the file against the XSD schema defined in the file.\n\nUsage\n-----\n\n### Installation with Composer\n\nIf you'd like to include this library in your project with [composer](https://getcomposer.org/), simply run:\n\n    composer require \"sclable/xml-lint\"\n\n### Command Line Usage\n\nTo lint a single xml file:\n\n    vendor/bin/xmllint path/to/file.xml\n\nTo lint a directory and all its subdirectories:\n\n    vendor/bin/xmllint path/to/dir\n    \n#### Help\n\n`xmllint` has built in cli help screen:\n\n    vendor/bin/xmllint --help\n\n#### Options\n\n* `-v` be verbose, display the filename of the current file to lint\n* `-r 0` don't search recursive (if the argument is a directory)\n* `-e name` exclude files or directories containing 'name'\n* `-s` skip the xsd validation\n\n\nDevelopment\n-----------\n\n### Run tests\n\n```shell\n# check code style\nphp tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run -v\n\n# run tests\nphp vendor/bin/phpunit\nphp vendor/bin/behat\n```\n\nUsing docker:\n\n```shell\n# Example\ndocker build -t xml-lint:php-8.3 --build-arg=PHP_VERSION=\"8.3\" .\n\n# PHP_VERSION: choose between 8.0, 8.1, 8.2 and 8.3\ndocker build -t xml-lint:php-8.0 --build-arg=PHP_VERSION=\"8.0\" .\ndocker build -t xml-lint:php-8.1 --build-arg=PHP_VERSION=\"8.1\" .\ndocker build -t xml-lint:php-8.2 --build-arg=PHP_VERSION=\"8.2\" .\ndocker build -t xml-lint:php-8.3 --build-arg=PHP_VERSION=\"8.3\" .\n\n# Run with code style check\ndocker build -t xml-lint:php-8.3 --build-arg=PHP_VERSION=\"8.3\" --build-arg=PHP_CS_FIXER=true .\n\n# Use this image to run xml-lint:\ncd tests/functional/_testdata\ndocker run -it --rm -v \"$PWD\":/var/src -w /var/src xml-lint:php-8.3 -r -v -- ./\n```\n\n\nChangelog\n---------\n\nFor the changelog see the [CHANGELOG](CHANGELOG) file\n\nLicense\n-------\n\nFor the license and copyright see the [LICENSE](LICENSE) file\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclable%2Fxml-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsclable%2Fxml-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsclable%2Fxml-lint/lists"}