Download the PHP package dmt-software/import-reader without Composer
On this page you can find all versions of the php package dmt-software/import-reader. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package import-reader
Import Reader
The reader is designed to go through a file to return chunks of its contents as objects without a high memory usage.
Installation
composer require dmt-software/import-reader
Usage
Create a reader
The reader can be created manually or the reader builder can be used to create a (default) reader or a pre-configured one.
Visit the reader handler documentation for more information on the handlers internal readers and sanitizers.
Adding decorators
Once a default reader is created, it is possible to add extra decorators to apply on each object that is returned by the read method.
More on decorators see the documentation.
Adding filters
Besides controlling the output by using a decorator a part of the object stream the reader returns can be skipped or filtered.
Visit the filters section for more information about filter callbacks.
Error Handling
UnreadableException
This is thrown when the given file can not be read. This can have several causes:
- file is unreadable
- can not set file pointer
- end of file reached whilst set file pointer
- file pointer is set to the wrong return type
ReaderReadException
This can happen when a single chunk can not be read from the file. It will stop execution of the reading process.
DecoratorException
This exception happens silently. It triggers a user warning and continues the reading process. Depending on you server configuration this warning is ignored or send to STDOUT or STDERR.
Other Exceptions or Errors
Any other kind of failures are (most likely) problems that are caused by configuration faults or when this software is implemented incorrect.
All versions of import-reader with dependencies
ext-iconv Version *
ext-json Version *
ext-libxml Version *
ext-simplexml Version *
pcrov/jsonreader Version ^1.0
dmt-software/xml-parser Version >=0.4