2017 © Pedro Peláez
 

library php-csv-validator

Simple PHP Class to validate CSV files / Single Rows

image

svenkuegler/php-csv-validator

Simple PHP Class to validate CSV files / Single Rows

  • Thursday, March 31, 2016
  • by svenkuegler
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,234 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 6 % Grown

The README.md

PHP CSV Validator

Build Status Code Climate Test Coverage, (*1)

Simple PHP Class to Validate CSV Files, (*2)

Installation

via Composer:, (*3)

composer require svenkuegler/php-csv-validator

Usage

Quick Start

Simple example to validate a file against a Schema., (*4)

require 'vendor/autoload.php';

$validator = new PhpCsvValidator();
$validator->loadSchemeFromFile("tests/files/example-scheme2.json");

if($validator->isValidFile("tests/files/example.csv")) {
    echo "File is Valid";
} else {
    echo "File is Invalid!";
}

Schema

..., (*5)

Exception handling

..., (*6)

Running Tests

$ phpunit

Contributing

Feel free to send pull requests or create issues if you come across problems or have great ideas. Any input is appreciated!, (*7)

License

This code is published under the The MIT License. This means you can do almost anything with it, as long as the copyright notice and the accompanying license file is left intact., (*8)

The Versions

31/03 2016

dev-master

9999999-dev https://github.com/svenkuegler/php-csv-validator

Simple PHP Class to validate CSV files / Single Rows

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

31/03 2016

0.1.0

0.1.0.0 https://github.com/svenkuegler/php-csv-validator

Simple PHP Class to validate CSV files / Single Rows

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires