All Projects → sclable → xml-lint

sclable / xml-lint

Licence: MIT License
A php tool to lint and validate xml files from the commandline.

Programming Languages

PHP
23972 projects - #3 most used programming language
Dockerfile
14818 projects
Gherkin
971 projects

Projects that are alternatives of or similar to xml-lint

xsd-reader
Pure PHP XSD Reader (XML Schema)
Stars: ✭ 45 (+221.43%)
Mutual labels:  xsd, xml-schema
jgeXml
The Just-Good-Enough XML Toolkit
Stars: ✭ 20 (+42.86%)
Mutual labels:  xsd, xml-schema
SAF-T-AO
Official XSD from the Government of Angola for use in SAF-T AO
Stars: ✭ 42 (+200%)
Mutual labels:  xsd, xmllint
jsons2xsd
Highly configurable converter from JSON-schema to XML-schema (XSD).
Stars: ✭ 65 (+364.29%)
Mutual labels:  xsd, xml-schema
xslweb
Web application framework for XSLT and XQuery developers
Stars: ✭ 39 (+178.57%)
Mutual labels:  xsd, xml-schema
xrechnung-visualization
XSL transformators for web and pdf rendering of German CIUS XRechnung or EN16931-1:2017 [MIRROR OF GitLab]
Stars: ✭ 26 (+85.71%)
Mutual labels:  xsd, xml-schema
commandeer
Take command of your command line in Nim
Stars: ✭ 84 (+500%)
Mutual labels:  commandline
py-spotme
A CLI tool that creates AWS spot instances on the fly
Stars: ✭ 16 (+14.29%)
Mutual labels:  commandline
m2-ComposerRepo
Composer Repository Manager for selling Magento 2 extension and offering composer installation for ordered packages.
Stars: ✭ 18 (+28.57%)
Mutual labels:  composer
xgen
XSD (XML Schema Definition) parser and Go/C/Java/Rust/TypeScript code generator
Stars: ✭ 153 (+992.86%)
Mutual labels:  xsd
rsfetch
A WIP rewrite of rsfetch from scratch.
Stars: ✭ 33 (+135.71%)
Mutual labels:  commandline
composer-wp
Manage WordPress core, plugins, and themes with composer.
Stars: ✭ 16 (+14.29%)
Mutual labels:  composer
cleanmymac
A developer friendly command line cleaner program for modern macOS systems
Stars: ✭ 35 (+150%)
Mutual labels:  composer
Utility.CommandLine.Arguments
A C# .NET class library containing tools for parsing the command line arguments of console applications.
Stars: ✭ 105 (+650%)
Mutual labels:  commandline
LaravelFtp
Laravel FTP client
Stars: ✭ 15 (+7.14%)
Mutual labels:  composer
alfred-packagist
Alfred workflow to search for PHP packages with Packagist
Stars: ✭ 21 (+50%)
Mutual labels:  composer
flarum-ext-indonesian
Indonesian Language Pack for Flarum
Stars: ✭ 13 (-7.14%)
Mutual labels:  composer
igcreator
Instagram mass account creator with proxies 🔃 and cookies 🍪 support
Stars: ✭ 35 (+150%)
Mutual labels:  composer
wpacked
📦 WPacked is a WordPress development starter kit with portability and immediate local development in mind.
Stars: ✭ 73 (+421.43%)
Mutual labels:  composer
project
🚀 Repo to `composer create project` a Bolt 5 project.
Stars: ✭ 27 (+92.86%)
Mutual labels:  composer

Sclable XML Lint

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

Build Status Latest Stable Version Total Downloads 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

Development

Run tests

# check code style
php tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run -v

# run tests
php vendor/bin/phpunit
php vendor/bin/behat

Using docker:

# Example
docker build -t xml-lint:php-8.1 --build-arg=PHP_VERSION="8.1" .

# PHP_VERSION: choose between 7.4, 8.0 and 8.1
docker build -t xml-lint:php-7.4 --build-arg=PHP_VERSION="7.4" .
docker build -t xml-lint:php-8.0 --build-arg=PHP_VERSION="8.0" .
docker build -t xml-lint:php-8.1 --build-arg=PHP_VERSION="8.1" .

# Run with code style check
docker build -t xml-lint:php-7.4 --build-arg=PHP_VERSION="7.4" --build-arg=PHP_CS_FIXER=true .

# Use this image to run xml-lint:
cd tests/functional/_testdata
docker run -it --rm -v "$PWD":/var/src -w /var/src xml-lint:php-7.4 -r -v -- ./

Changelog

For the changelog see the CHANGELOG file

License

For the license and copyright see the LICENSE file

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].