PHPackages                             fgsl/csvextractor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. fgsl/csvextractor

ActiveLibrary[Database &amp; ORM](/categories/database)

fgsl/csvextractor
=================

component to extract data from CSV files to SQL database tables

0.0.1(4y ago)05LGPL-3.0-or-laterPHP

Since Oct 26Pushed 4y ago1 watchersCompare

[ Source](https://github.com/fgsl/csvextractor)[ Packagist](https://packagist.org/packages/fgsl/csvextractor)[ RSS](/packages/fgsl-csvextractor/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

csvextractor
============

[](#csvextractor)

CSV file extractor for relational database tables

Extrator de arquivos CSV para tabelas de banco de dados relacional

Installation / Instalação
-------------------------

[](#installation--instalação)

`composer require fgsl/csvextractor`

Configuration / Configuração
----------------------------

[](#configuration--configuração)

**Configuration file / Arquivo de configuração**

Copy the file [config.php.dist](https://github.com/fgsl/csvextractor/blob/master/config.php.dist) as config.php and fill with the name of CSV file and the database connection parameters.

Copie o arquivo [config.php.dist](https://github.com/fgsl/csvextractor/blob/master/config.php.dist) como config.php e preencha com o nome do arquivo CSV e com os dados de conexão com o banco de dados

**Decorator**

Create a class that implements the interface [CsvExtractorInterface](https://github.com/fgsl/csvextractor/blob/master/src/CsvExtractorInterface.php) with the treatment for CSV file data and the statement INSERT for the table.

Crie uma classe que implemente a interface [CsvExtractorInterface](https://github.com/fgsl/csvextractor/blob/master/src/CsvExtractorInterface.php) com o tratamento de dados do arquivo CSV e o comando INSERT para a tabela.

Example / Exemplo:

```
