sclable/xml-lint

A php cli tool to lint and validate xml files.

0.2.4 2018-03-22 08:31 UTC

README

A php tool to lint and validate xml files from the commandline.

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

XML Lint checks the syntax of any xml files and validates the file against the XSD schema defined in the file.

Usage

Installation with Composer

If you'd like to include this library in your project with composer, simply run:

composer require "sclable/xml-lint"

Command Line Usage

To lint a single xml file:

vendor/bin/xmllint path/to/file.xml

To lint a directory and all its subdirectories:

vendor/bin/xmllint path/to/dir

Help

xmllint has built in cli help screen:

vendor/bin/xmllint --help

Options

  • -v be verbose, display the filename of the current file to lint
  • -r 0 don't search recursive (if the argument is a directory)
  • -e name exclude files or directories containing 'name'
  • -s skip the xsd validation

Changelog

For the changelog see the CHANGELOG file

License

For the license and copyright see the LICENSE file