PHPackages                             ceytek-labs/php-spreadsheet-lite - 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. [PDF &amp; Document Generation](/categories/documents)
4. /
5. ceytek-labs/php-spreadsheet-lite

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

ceytek-labs/php-spreadsheet-lite
================================

A lightweight library for creating and reading spreadsheets in CSV or XLSX formats using PhpSpreadsheet.

v1.0.2(1y ago)04MITPHPPHP ^8.1

Since Nov 26Pushed 1y agoCompare

[ Source](https://github.com/ceytek-labs/php-spreadsheet-lite)[ Packagist](https://packagist.org/packages/ceytek-labs/php-spreadsheet-lite)[ Docs](https://github.com/ceytek-labs/php-spreadsheet-lite)[ RSS](/packages/ceytek-labs-php-spreadsheet-lite/feed)WikiDiscussions 1.x Synced 1mo ago

READMEChangelogDependencies (1)Versions (5)Used By (0)

 [![FtpDownloader - Simple FTP File Downloader](https://raw.githubusercontent.com/ceytek-labs/php-spreadsheet-lite/refs/heads/1.x/art/banner.png)](https://raw.githubusercontent.com/ceytek-labs/php-spreadsheet-lite/refs/heads/1.x/art/banner.png)

 [![Total Downloads](https://camo.githubusercontent.com/e5d329255346d6d76eb16ea4fec2679f22238a1b9c0b2557f9264b367d234ba0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63657974656b2d6c6162732f7068702d73707265616473686565742d6c697465)](https://packagist.org/packages/ceytek-labs/php-spreadsheet-lite) [![Latest Version](https://camo.githubusercontent.com/35a0330957b27f0f542e30ceb7e379aa12a7ded4a1ff9b08a4c917a2e1c44bd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63657974656b2d6c6162732f7068702d73707265616473686565742d6c697465)](https://packagist.org/packages/ceytek-labs/php-spreadsheet-lite) [![Size](https://camo.githubusercontent.com/3822929ce7b38f2ee2fe4342949aeb0608a3fcbb6a43ba2f23f22f0e0f98bfea/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7265706f2d73697a652f63657974656b2d6c6162732f7068702d73707265616473686565742d6c697465)](https://packagist.org/packages/ceytek-labs/php-spreadsheet-lite) [![License](https://camo.githubusercontent.com/5c6e12ef2eb41a0df98effe01bd2bbd2a6515766c59b8df4703c710f2de74277/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f63657974656b2d6c6162732f7068702d73707265616473686565742d6c697465)](https://packagist.org/packages/ceytek-labs/php-spreadsheet-lite)

---

PhpSpreadsheetLite - Lightweight Spreadsheet Utility
====================================================

[](#phpspreadsheetlite---lightweight-spreadsheet-utility)

**PhpSpreadsheetLite** is a lightweight library designed to simplify creating and reading spreadsheets in CSV or XLSX formats using [PhpSpreadsheet](https://github.com/PHPOffice/PhpSpreadsheet). It provides an intuitive API for quick and efficient spreadsheet operations.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- PhpSpreadsheet library (automatically installed via Composer)

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

[](#installation)

Install the package via Composer. This will also install **phpoffice/phpspreadsheet** automatically:

```
composer require ceytek-labs/php-spreadsheet-lite
```

Usage
-----

[](#usage)

Here’s an example of how to use **PhpSpreadsheetLite**:

### Creating and Saving a Spreadsheet

[](#creating-and-saving-a-spreadsheet)

```
use CeytekLabs\PhpSpreadsheetLite\PhpSpreadsheetLite;
use CeytekLabs\PhpSpreadsheetLite\SpreadsheetFormat;

try {
    PhpSpreadsheetLite::make()
        ->setHeaders(['ID', 'Name', 'Email']) // Set the headers
        ->setContent([
            [1, 'John Doe', 'john.doe@example.com'],
            [2, 'Jane Smith', 'jane.smith@example.com'],
        ]) // Add your data
        ->setDirectory('/path/to/save') // Specify directory
        ->setFilename('example') // Specify file name
        ->setFileFormat(SpreadsheetFormat::XLSX) // Supported formats: XLSX, CSV
        ->createSpreadsheet();

    echo "Spreadsheet created successfully.";
} catch (\Exception $exception) {
    echo "Error: " . $exception->getMessage();
}
```

### Reading a Spreadsheet

[](#reading-a-spreadsheet)

```
use CeytekLabs\PhpSpreadsheetLite\PhpSpreadsheetLite;
use CeytekLabs\PhpSpreadsheetLite\SpreadsheetFormat;

try {
    $data = PhpSpreadsheetLite::make()
        ->setDirectory('/path/to/spreadsheet') // Specify directory
        ->setFilename('example') // Specify file name
        ->setFileFormat(SpreadsheetFormat::XLSX) // Match the file format
        ->readSpreadsheet();

    print_r($data);
} catch (\Exception $exception) {
    echo "Error: " . $exception->getMessage();
}
```

### Enum for File Formats

[](#enum-for-file-formats)

The **SpreadsheetFormat** enum helps you specify supported file formats consistently:

```
enum SpreadsheetFormat: string
{
    case XLSX = 'xlsx';
    case CSV = 'csv';
}
```

Contributing
------------

[](#contributing)

Feel free to submit a **pull request** or report an issue. Any contributions and feedback are highly appreciated!

License
-------

[](#license)

This project is licensed under the MIT License.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

4

Last Release

533d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd04f7a68c28475cb5493f3d841a7ae95ad200188efb658e1a37e30a5f2ba6db?d=identicon)[ceyhun-celik](/maintainers/ceyhun-celik)

---

Top Contributors

[![ceyhun-celik](https://avatars.githubusercontent.com/u/112348956?v=4)](https://github.com/ceyhun-celik "ceyhun-celik (3 commits)")

---

Tags

phplibraryexcelxlsxcsvspreadsheetphpspreadsheetlightweightCeytek Labs

### Embed Badge

![Health badge](/badges/ceytek-labs-php-spreadsheet-lite/health.svg)

```
[![Health](https://phpackages.com/badges/ceytek-labs-php-spreadsheet-lite/health.svg)](https://phpackages.com/packages/ceytek-labs-php-spreadsheet-lite)
```

###  Alternatives

[maatwebsite/excel

Supercharged Excel exports and imports in Laravel

12.7k144.3M712](/packages/maatwebsite-excel)[openspout/openspout

PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

1.1k57.6M131](/packages/openspout-openspout)[avadim/fast-excel-writer

Lightweight and very fast XLSX Excel Spreadsheet Writer in PHP

2951.2M7](/packages/avadim-fast-excel-writer)[avadim/fast-excel-reader

Lightweight and very fast XLSX Excel Spreadsheet Reader in PHP

104608.4k6](/packages/avadim-fast-excel-reader)

PHPackages © 2026

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