Code Monkey home page Code Monkey logo

csv's People

Contributors

4lb0 avatar adrianthedev avatar freekmurze avatar mnshankar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

csv's Issues

CSV Uses LF But Need CR

Does the default escape character used equate to a LF or CR?

If it's an LF, is there a way to set the escape character for fputcsv() with this package?

Auto populate if row isn't long enough

I am having to ingest a CSV that is created by an external source and all but the last row has 4 sections.

Foo,Bar,Baz,Pineapple
Foo,Bar,Baz,Pineapple
Foo,Bar,Baz,Pineapple
*END*

Unfortunately the external system signs off the end of the file with

*END*

Is there a way that I can tell your code to just add blank fields to the end to give it the correct amount of fields so the file can be processed?

toArray

I guess this package isn't really for manipulating CSV files?

I'd like to read a CSV, loop through all rows, format it and then pass it to my model to be imported.

Some kind of toArray method would be good.

Error exception if file contains empty line

CSV file that created by external service contains empty line in the end. Getting exception:

[ErrorException]                                                          
array_combine(): Both parameters should have an equal number of elements 

Typo in readme

This:

'providers' => array(
    'mnshankar\csv\CsvServiceProvider',
)

Should be:

'providers' => array(
    'mnshankar\Csv\CsvServiceProvider',
)

Great code, thanks for sharing.

put Method not returned

Hi there, nice work on this!

I found something that wasn't working for my implementation of this from your first example of how to use this class...

return CSV::with($arr)->put(storage_path().'/downloads/myusers.csv');

In my handler I check to see if the file has been written but it kept failing, I had a look at the put method and noticed that it wasn't being returned, I've added...

return $this;

...to the method and now it works perfect.

Please release a version

Thanks for this package. Any chance you can release a version to so we can avoid tracking dev-master directly?

CSV for laravel5 ?

I think it would be great, because it is the easiest vendor around to export.

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.