PHPackages                             diegogonda/stream-converter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. diegogonda/stream-converter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

diegogonda/stream-converter
===========================

Librería que nos permite leer y escribir ficheros en distintos formatos para gestionar su información

06PHP

Since Apr 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/diegogonda/StreamConverter)[ Packagist](https://packagist.org/packages/diegogonda/stream-converter)[ RSS](/packages/diegogonda-stream-converter/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

StreamConverter
===============

[](#streamconverter)

Esta librería nos permite realizar la gestiona los contenidos de ficheros en distintos formatos.

Instalar
========

[](#instalar)

```
composer require diegogonda/stream-converter

```

Cómo se usa
===========

[](#cómo-se-usa)

Lectura
-------

[](#lectura)

Veamos un ejemplo en CSV:

```
include 'vendor/autoload.php';

use handler\CSV as CSVHandler;

$csvHandler = new CSVHandler();
$usuario = $csvHandler->read("./files/csv/usuario.csv");

var_dump($usuario);
```

Escribir
--------

[](#escribir)

Veamos un ejemplos en JSON:

```
include 'vendor/autoload.php';

use handler\JSON as JSONHandler;

$data = [
    'dato1' => 1,
    'dato2' => 2,
    'dato3' => '3'
];

$jsonHandler = new JSONHandler();
$usuario = $jsonHandler->write("./files/json/data.json", $data);
```

Lectura/escritura de un fichero, transformando el formato
---------------------------------------------------------

[](#lecturaescritura-de-un-fichero-transformando-el-formato)

```
include 'vendor/autoload.php';

use handler\CSV as CSVHandler;
use handler\JSON as JSONHandler;
use converter\Manager;

$manager = new Manager();
$manager->convert(
    new CSVConverter(),
    new JSONHandler(),
    "./files/csv/ejemplo.csv",
    "./files/json/usuario.json"
);
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/846cd19531029bab58d53a9770cef110fe2c1fc20321dfff5733b6bd79b619f4?d=identicon)[diegogonda](/maintainers/diegogonda)

---

Top Contributors

[![diegogonda](https://avatars.githubusercontent.com/u/17899891?v=4)](https://github.com/diegogonda "diegogonda (8 commits)")

### Embed Badge

![Health badge](/badges/diegogonda-stream-converter/health.svg)

```
[![Health](https://phpackages.com/badges/diegogonda-stream-converter/health.svg)](https://phpackages.com/packages/diegogonda-stream-converter)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
