File manipulation classes
Via Composer
$ composer require graze/data-file
FileModifierInterface
- Modify a single fileFileExpanderInterface
- Expand a single file into a collection of filesFileContractorInterface
- Contract a collection of files into a single fileFileTransferInterface
- Transfer a file to another file systemFileFinderInterface
- Find files based on a configurationFormatInterface
- Format information about a fileFormatterInterface
- How to format a file based on a formatParserInterface
- Parse a stream of dataReaderInterface
- Read a streamWriterInterface
- Write a stream
- Finder:
MetadataFinder
- Will find files based on their metadata (size, created time, etc) - Format:
CsvFormat
,JsonFormat
- Defines how a csv or json file is formatted- Formatter:
CsvFormatter
,JsonFormatter
- Format data into csv or json file - Parse:
CsvParser
,JsonParser
- Parse a file containing csv, or json data
- Formatter:
- Modify
- Compression:
Gzip
,Zip
,FindCompression
- Compress, decompress and find the compression of files - Merge:
Merge
- Join multiple files into a single file - Transfer:
Transfer
- Transfer a file from any thephpleague/flysystem Filesystem to another filesystem - Encoding:
ConvertEncoding
,FindEncoding
- Change or find the encoding of a file - Line manipulation:
Head
,Tail
- Retrieve a segment of a file - Replace Text:
ReplaceText
- Replace all instances of a string with another string - ReFormat:
ReFormat
- Read a file in 1 format and convert to another
- Compression:
- IO
- Read:
FileReader
,StreamReader
- Read a file/stream in a specified format - Write:
FileWriter
,StreamWriter
- Write a file/stream in a specified format
- Read:
$ make test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email security@graze.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.