Recommend this page to a friend! |
Download .zip |
Info | View files (21) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2014-05-02 (2 years ago) | Not enough user ratings | Total: 323 This week: 1 | All time: 6,815 This week: 1,047 |
Version | License | PHP version | Categories | |||
split-csv 1.0.0 | BSD License | 5.3.0 | PHP 5, Files and Folders |
Description | Author | |
This package can split CSV files input multiple parts set by rules. |
SplitCSV ======== Objective --------- SplitCSV helps to split comma separated value file (CSV) into chunks by configurable options: * Each file's part contains first row from original file (or several one) * Every file's part has name as original but with a prefix Of course it is not possible to implement all varies of algorithms of splitting. Therefore SplitCSV presents AbstractRule and RuleInterface to add user rules. Split Rules ----------- There are two split rules that is available from box: * Split by number of rows * Split by file size Area of usage ------------- There are several fields where better have several files instead of one: * Project log files to prevent them growing to gigantic size * Reports before sending them off by email * Price list from different stores before import them to someone * Prepare data for parallel calculation to make possible spread data between servers or processes ### Example The example file can be found here: `/Example.php` |
Files |
File | Role | Description | ||
---|---|---|---|---|
docs (1 directory) | ||||
src (1 file, 1 directory) | ||||
tests (2 files, 2 directories) | ||||
CHANGELOG.md | Data | Documentation | ||
Example.php | Example | Example script | ||
LICENSE.txt | Lic. | Documentation | ||
README.md | Doc. | Documentation |
Files | / | src | / | SplitCSV |
File | Role | Description | ||
---|---|---|---|---|
Rule (5 files) | ||||
AbstractFile.php | Class | Class source | ||
Exception.php | Class | Class source | ||
File.php | Class | Class source | ||
FileInterface.php | Class | Class source |
Files | / | src | / | SplitCSV | / | Rule |
File | Role | Description |
---|---|---|
AbstractRule.php | Class | Class source |
Exception.php | Class | Class source |
FileSize.php | Class | Class source |
NumberRow.php | Class | Class source |
RuleInterface.php | Class | Class source |
Files | / | tests |
File | Role | Description | ||
---|---|---|---|---|
data (1 file) | ||||
src (1 directory) | ||||
bootstrap.php | Aux. | Class source | ||
phpunit.xml | Data | Auxiliary data |
Files | / | tests | / | src | / | SplitCSV |
File | Role | Description | ||
---|---|---|---|---|
Rule (1 file) | ||||
BaseTest.php | Test | Unit test script | ||
FileTest.php | Test | Unit test script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.