PHPackages                             siokobu/phpspreadsheetdb - 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. siokobu/phpspreadsheetdb

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

siokobu/phpspreadsheetdb
========================

Library for DB Operation using SpreadSheet

v3.0.2(4mo ago)01.0kApache-2.0PHP

Since Nov 26Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/siokobu/PHPSpreadsheetDB)[ Packagist](https://packagist.org/packages/siokobu/phpspreadsheetdb)[ RSS](/packages/siokobu-phpspreadsheetdb/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (25)Used By (0)

PhpSpreadsheetDB
================

[](#phpspreadsheetdb)

PhpSpreadsheet is a library written in pure PHP and offers a function to export data from DB to Spreadsheet and a function to import data from Spreadsheet to DB

Supported Databases
-------------------

[](#supported-databases)

Microsoft SQL Server And SQLite, PostgreSQL, MariaDB is Supported.

Supported Spreadsheet
---------------------

[](#supported-spreadsheet)

Only Microsoft Excel is Supported.

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

[](#installation)

Use [composer](https://getcomposer.org) to install PhpSpreadsheetDB into your project:

```
composer require siokobu/phpspreadsheetdb
```

Often PhpSpreadsheetDB to help PHPUnit test.

```
composer require --dev siokobu/phpspreadsheetdb
```

### How to use

[](#how-to-use)

- SQL Server

```
$db = new SQLSrv($host, $port, $database, $user, $password);
$xlsx = new Xlsx($path);
$phpSpreadsheetDB = new PHPSpreadsheetDB($SQLSrv, $xlsx);
$phpSpreadsheetDB->import();
```

- Postgres

```
$db = new Postgres($host, $port, $database, $user, $password);
$xlsx = new Xlsx($path);
$phpSpreadsheetDB = new PHPSpreadsheetDB($postgres, $xlsx);
$phpSpreadsheetDB->import();
```

- MariaDB

```
$db = new MariaDB($host, $port, $database, $user, $password);
$xlsx = new Xlsx($path);
$phpSpreadsheetDB = new PHPSpreadsheetDB($db, $xlsx);
$phpSpreadsheetDB->import();
```

- SQLite

```
$db = new SQLite($filename);
$xlsx = new Xlsx($path);
$phpSpreadsheetDB = new PHPSpreadsheetDB($db, $xlsx);
$phpSpreadsheetDB->import();
```

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance78

Regular maintenance activity

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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 ~83 days

Recently: every ~6 days

Total

19

Last Release

123d ago

Major Versions

1.1.4 → 2.0.0.x-dev2022-02-09

1.1.5 → 2.0.02022-07-25

2.0.0 → v3.0.02025-12-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d40e344b0464bd452529773f4f910724a1407517c79fdc546eebaedf966788e?d=identicon)[tomocky1](/maintainers/tomocky1)

---

Top Contributors

[![tomocky1](https://avatars.githubusercontent.com/u/1815933?v=4)](https://github.com/tomocky1 "tomocky1 (31 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/siokobu-phpspreadsheetdb/health.svg)

```
[![Health](https://phpackages.com/badges/siokobu-phpspreadsheetdb/health.svg)](https://phpackages.com/packages/siokobu-phpspreadsheetdb)
```

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[forkcms/forkcms

Fork is an open source CMS that will rock your world.

1.2k44.5k](/packages/forkcms-forkcms)[mammothphp/woollym

WoollyM: PHP Data Analysis Library

111.6k](/packages/mammothphp-woollym)

PHPackages © 2026

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