I needed to convert a VCF file into a CSV file by fetching the important and readable informations.
Thanks to the bazzline component it was a quick win/no brainer. You can find the result here. It is written under GPL-3 License.
How to use it?
- open a terminal / command line
- git clone https://github.com/stevleibelt/incubator
- cd incubator/general/vcftocsv_converter
I am happy to announce the release of 1.5.3 of bazzlines csv component for php.
Since Version 1.5.1
Since Version 1.5.0
Since Version 1.4.0
Important changes are:
Since Version 1.5.2
- started cli example to easy up usage
- added "rewind" call when using reader::readAll() and reader::readMany()
I am happy to announce the release of 1.3.0 of bazzlines csv component for php.
Important changes are:
Since Version 1.3.0
Since Version 1.2.0
Since Version 1.1.0
- added headline output support as keys for Reader::readMany()
- added headline output support as keys for Reader::readOne()
- can be disabled by Reader::disableAddHeadlineToOutput()
- can be enabled by Reader::enableAddHeadlineToOutput()
- is enabled by default
- fixed broken unit test for php 5.3
- moved complex array combine into own project
- removed duplicated code in Reader
- added link to api
- added minimum php version requirement
- implemented "move($path)" method into Writer
- removed "TODO"
- updated dependencies
I am happy to announce the release of 1.0.0 of bazzlines csv component for php.
- works with PHP 5.3 and above
- __invoke() implemented to use it as function
- unified reader and writer
- adapter to easy up migration from EasyCsv - 0.0.1 to this component
- implemented iterator
- writeAll(); //truncates file and writes content
I had to investigate a bug and figured out a strange behavior in the SplFileObject implementation of php. I know, some of you would add "again", but this does not matter.
To illustrate this problem, I created a little example file. If you run it, you get the following output:
using fgetcsv and writing key 13 times.
0 0 1 2 3 4 5 6 7 8 9 10 10
using current and writing key 13 times.
0 0 0 0 0 0 0 0 0 0 0 0 0
As you can see, if you use "fgetcsv
", the current key is move to the next step.
If you use "current
", the current key won't get updated (which is most likely what you want).
You can easily set the csv delimiter etc. by using setCsvControl()".