2017 © Pedro PelĂĄez
 

library php-rwgen

Read/write generators in PHP

image

jotaelesalinas/php-rwgen

Read/write generators in PHP

  • Tuesday, November 28, 2017
  • by jotaelesalinas
  • Repository
  • 1 Watchers
  • 0 Stars
  • 98 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 17 Versions
  • 4 % Grown

The README.md

php-rwgen

Latest Version on Packagist ![Software License][ico-license] Build Status ![Total Downloads][ico-downloads], (*1)

Read/write generators in PHP., (*2)

PSR-4 compliant library to simplify reading and writing from/to files or any other endpoint within loops., (*3)

The benefits of using this library are:, (*4)

  • Read and write from/to many different sources using a common syntax
  • Use it easily in foreach loops (readers) or any other kind of loop (writers)
  • Unclutter your code by delegating the preparation and cleanup steps

Install

Via Composer, (*5)

$ composer require jotaelesalinas/php-rwgen

Usage

$input = new JLSalinas\RWGen\Readers\Csv($filename_customers);

$output_csv = new JLSalinas\RWGen\Writers\Csv($filename_output . '.csv');
$output_kml = new JLSalinas\RWGen\Writers\Kml($filename_output . '.kml');

foreach ( $input as $customer ) {
    // ...some filtering and transforming...
    $output_csv->send($customer_data);
    $output_kml->send($customer_geolocation_data);
}

Creating your own Readers and Writers

Please see extending.md for more information., (*6)

Change log

Please see the CHANGELOG for more information what has changed recently., (*7)

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*8)

Security

If you discover any security related issues, please email DM @jotaelesalinas instead of using the issue tracker., (*9)

To do

  • [ ] Improve tests code coverage
  • [ ] Add docblocks
  • [ ] Fill changelog
  • [x] Travis-CI
  • [ ] Use league/csv?

Credits

License

The MIT License (MIT). Please see License File for more information., (*10)

The Versions

28/11 2017

dev-master

9999999-dev https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

23/09 2017

v0.4.4

0.4.4.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

13/04 2017

v0.4.3

0.4.3.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

25/03 2017

v0.4.2

0.4.2.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

25/03 2017

v0.4.1

0.4.1.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

25/03 2017

v0.4

0.4.0.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

25/03 2017

0.4

0.4.0.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

29/08 2016

v0.3.1

0.3.1.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

29/08 2016

v0.3.0

0.3.0.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

27/08 2016

v0.2.5

0.2.5.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

26/08 2016

v0.2.4

0.2.4.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

25/08 2016

v0.2.3

0.2.3.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

25/08 2016

v0.2.2

0.2.2.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

25/08 2016

v0.2.1

0.2.1.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

21/08 2016

v0.2.0

0.2.0.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

20/08 2016

v0.1.1

0.1.1.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas jlsalinas rw php-rwgen rwgen read-write

20/08 2016

v0.1

0.1.0.0 https://github.com/jotaelesalinas/php-rwgen

Read/write generators in PHP

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

read write php generators output input io consumer producer jotaelesalinas rw php-rwgen rwgen read-write