svenkuegler/php-csv-validator
Composer 安装命令:
composer require svenkuegler/php-csv-validator
包简介
Simple PHP Class to validate CSV files / Single Rows
README 文档
README
Simple PHP Class to Validate CSV Files
Installation
via Composer:
composer require svenkuegler/php-csv-validator
Usage
Quick Start
Simple example to validate a file against a Schema.
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
...
Exception handling
...
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!
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.
统计信息
- 总下载量: 9.71k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-31