Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdheiden committed Jun 26, 2018
1 parent 3c6a8a9 commit 6077720
Show file tree
Hide file tree
Showing 12 changed files with 2,045 additions and 2 deletions.
150 changes: 150 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# Based on https://github.com/github/gitignore/tree/master/Global

################################################################################
#
# Ignore all dot-files and dot-folders, except .htaccess and .gitignore
#
################################################################################
.*
!/.gitignore
!/.htaccess

################################################################################
#
# JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion
#
################################################################################
*.iml
.idea/

## File-based project format:
*.ipr
*.iws

# Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties

################################################################################
#
# Netbeans
#
################################################################################

nbproject/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml
.nb-gradle/

################################################################################
#
# Windows OS
#
################################################################################

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk

################################################################################
#
# Notepad++
#
################################################################################

*.bak

################################################################################
#
# Vagrant
#
################################################################################

.vagrant/

################################################################################
#
# TortoiseGit
#
################################################################################

# Project-level settings
/.tgitconfig

################################################################################
#
# NodeJS
#
################################################################################

# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://docs.npmjs.com/misc/faq#should-i-check-my-node-modules-folder-into-git
node_modules

################################################################################
#
# Composer
#
################################################################################

composer.phar
vendor/

# Commit your application's lock file http://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
#composer.lock
54 changes: 52 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,52 @@
# dicms-xsd-validator
Validate your XML easily to a XSD schema
# XML Validator

Validate your XML easily. The main purpose is to validate the XML to a XSD schema, but (basic) validation without a
schema is possible too.

```php
$validator = new Validator('books.xml');

// Validate with a XSD schema
$valid = $validator->validate('books.xsd');

// Or validate without a XSD schema
$valid = $validator->validate();
```

## Requirements

This package requires PHP 7.1 or higher with the libxml extension (which is enabled by default).

## Installation

```php
composer require vdhicts/xml-validator
```

## Tests

Full code coverage unit tests are available in the `tests` folder. Run via phpunit:

`vendor\bin\phpunit`

By default a coverage report will be generated in the `build/coverage` folder.

## Contribution

Any contribution is welcome, but it should be fully tested, meet the PSR-2 standard and please create one pull request
per feature. In exchange you will be credited as contributor on this page.

## Security

If you discover any security related issues in this or other packages of Vdhicts, please email [email protected] instead
of using the issue tracker.

## License

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

## About vdhicts

[Van der Heiden ICT services](https://www.vdhicts.nl) is the name of my personal company for which I work as
freelancer. Van der Heiden ICT services develops and implements IT solutions for businesses and educational
institutions.
29 changes: 29 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "vdhicts/xml-validator",
"description": "Validate your XML easily to a XSD schema",
"license": "MIT",
"authors": [
{
"name": "Dick van der Heiden",
"email": "[email protected]",
"homepage": "http://www.vdhicts.nl",
"role": "Developer"
}
],
"require": {
"php": "^7.1",
"ext-libxml": "*"
},
"require-dev": {
"phpunit/phpunit": "^7.0"
},
"autoload": {
"psr-4": {
"Vdhicts\\Dicms\\XmlValidator\\": "src/",
"Vdhicts\\Dicms\\XmlValidator\\Tests\\": "tests/"
}
},
"config": {
"sort-packages": true
}
}
Loading

0 comments on commit 6077720

Please sign in to comment.