palvoelgyilaszlo/csvreplace

Sring replate into csv file

v1.0.3 2021-05-25 10:36 UTC

This package is auto-updated.

Last update: 2024-12-25 18:22:46 UTC


README

require_once '../vendor/autoload.php';

use Palvoelgyi\CsvRepace\CsvRepace;

Use for information:

$CsvRepace = new CsvRepace;

$CsvRepace
    ->setDir('../csvdata') // for example "../csvdata"
    ->isDir()
    ->getInfo();

Use for replace:

$CsvRepace = new CsvRepace;

$CsvRepace
    ->setDir('../csvdata') // for example "../csvdata"
    ->setReplace(array $replace) // optional
    ->setIngnore(array $ingnore) // optional
    ->isDir() // optional
    ->replaceData();