PHPackages                             fbizi/import-export-files - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. fbizi/import-export-files

ActiveLibrary[File &amp; Storage](/categories/file-storage)

fbizi/import-export-files
=========================

Import-Export-Files - A simple library to work with Import and Export files as CSV, JSON and XML.

v2.0.0(3y ago)021MITPHPPHP &gt;=7.4

Since Feb 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/franciscobizi/import-export-files)[ Packagist](https://packagist.org/packages/fbizi/import-export-files)[ Docs](https://github.com/franciscobizi/imporTExport-files)[ RSS](/packages/fbizi-import-export-files/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

imporTExport-files
==================

[](#importexport-files)

Downloads Last Stable Version v2.0

A light library to work with Import and Export files (requires PHP 7.4 +). The implementation is based on the current draft. CSV, JSON and XML are the files extensions that supported for the library.

Installation
------------

[](#installation)

Package is available on [Packagist](https://packagist.org/packages/fbizi/import-export-files), you can install it using Composer.

`composer require fbizi/import-export-files`or [download the zip file](https://github.com/franciscobizi/import-export-files/archive/master.zip)

Dependencies
------------

[](#dependencies)

- PHP 7.4+
- PHPUnit 9+

Basic usage
-----------

[](#basic-usage)

### Importing &amp; Exporting

[](#importing--exporting)

Just use the Importer/Exporter class for work with:

```
define("DIR_PATH", "_DIR_./../uploads/");
require __DIR__ .'/../vendor/autoload.php';

use FBIZI\IE\{Importer, Exporter}; // you can use only one of them depends of your needs
use FBIZI\IE\Importers\{ // you can use only one of them depends of your needs
    ImportCsv,
    ImportJson,
    ImportXml
};
use FBIZI\IE\Exporters\{ // you can use only one of them depends of your needs
    ExportCsv,
    ExportJson,
    ExportXml
};

// Import xml file example
$obj = new Importer(
    //new ImportCsv(DIR_PATH . "testes.csv")
    //new ImportJson(DIR_PATH . "testes.json")
    new ImportXml(DIR_PATH . "testes.xml")
);
$data = $obj->importer->import();

foreach ($data['users'] as $user) {
    echo "{$user->fname} {$user->lname}\n";
}

// Export xml file example
$data = [
 	[ 'name' => 'John Deor', 'age' => '34', 'role' => 'Developer' ],
 	[ 'name' => 'John Deep', 'age' => '37', 'role' => 'Seller' ],
 	[ 'name' => 'John Walker', 'age' => '37', 'role' => 'Manager' ]
 ];

$obj = new Exporter(
    //new ExportCsv($data, DIR_PATH . "downloads/testes.csv")
    //new ExportJson($data, DIR_PATH . "downloads/testes.json")
    new ExportXml($data, DIR_PATH . "downloads/testes1.xml")
);
$res = $obj->exporter->export();
echo $res;
```

Donation
--------

[](#donation)

Methods :

- [Buy me a coffee](https://www.buymeacoffee.com/franciscobizi)

If this project help you reduce time to develop, you can give me a cup of coffee :)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~577 days

Total

4

Last Release

1282d ago

Major Versions

v1.1.1 → v2.0.02022-11-06

PHP version history (2 changes)v1.0.0PHP ^7.0

v2.0.0PHP &gt;=7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e8799a0920ac75375ecb2897bcf593fdea84debc4c88bfcd2ea3325a767cf17?d=identicon)[franciscobizi](/maintainers/franciscobizi)

---

Top Contributors

[![franciscobizi](https://avatars.githubusercontent.com/u/16182066?v=4)](https://github.com/franciscobizi "franciscobizi (49 commits)")

---

Tags

exportfilesimport

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fbizi-import-export-files/health.svg)

```
[![Health](https://phpackages.com/badges/fbizi-import-export-files/health.svg)](https://phpackages.com/packages/fbizi-import-export-files)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[league/flysystem-local

Local filesystem adapter for Flysystem.

226231.8M39](/packages/league-flysystem-local)[mikehaertl/php-tmpfile

A convenience class for temporary files

9729.7M20](/packages/mikehaertl-php-tmpfile)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)

PHPackages © 2026

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