Skip to content

Convert VCF File into a CSV File

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
  • ./converter
Translate to de es fr it pt ja

version 1.5.2 php component csv released

I am happy to announce the release of 1.5.3 of bazzlines csv component for php.
Important changes are:
Since Version 1.5.2

Since Version 1.5.1
  • updated dependency
Since Version 1.5.0
Since Version 1.4.0
  • started cli example to easy up usage
  • added "rewind" call when using reader::readAll() and reader::readMany()
Translate to de es fr it pt ja

version 1.3.0. php component csv released

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

  • 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
Since Version 1.2.0
Since Version 1.1.0
  • added link to api
  • added minimum php version requirement
  • implemented "move($path)" method into Writer
  • removed "TODO"
  • updated dependencies
Translate to de es fr it pt ja

version 1.0.0. php component csv released

I am happy to announce the release of 1.0.0 of bazzlines csv component for php.
Benefits

  • 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
  • reader
    • implemented iterator
    • readOne();
    • readMany();
    • readAll();
  • writer
    • truncate();
    • delete();
    • copy();
    • writeOne();
    • writeMany();
    • writeAll(); //truncates file and writes content

Translate to de es fr it pt ja

php SplFileObject and the difference between fgetcsv and current

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:


generating content.
..........
writing content.
..........
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()".

Categories: coding
Defined tags for this entry: , , , , , ,
Vote for articles fresher than 7 days!
Derzeitige Beurteilung: 4.50 of 5, 2 Stimme(n) 943 hits