PHPackages                             lapinator/ods-php-generator - 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. lapinator/ods-php-generator

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

lapinator/ods-php-generator
===========================

Open Document Spreadsheet (.ods) generator

v0.0.4(4mo ago)63.6k2[3 issues](https://github.com/Lapinator/odsPhpGenerator/issues)LGPL-3.0PHPPHP &gt;=5.4

Since Apr 14Pushed 4mo ago2 watchersCompare

[ Source](https://github.com/Lapinator/odsPhpGenerator)[ Packagist](https://packagist.org/packages/lapinator/ods-php-generator)[ Docs](https://odsphpgenerator.lapinator.net/)[ RSS](/packages/lapinator-ods-php-generator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (3)Used By (0)

odsPhpGenerator
===============

[](#odsphpgenerator)

odsPhpGenerator is a library written in PHP to generate Open Document Spreadsheet (.ods)

[![Avatars in trending repos](screenshots/1.png)](screenshots/1.png)

Features
--------

[](#features)

- UTF-8 Encoding
- Multi tables
- Merge Cells
- Formula
- Images
- And more

Install
-------

[](#install)

By composer :

```
$ composer require lapinator/ods-php-generator
```

Example
-------

[](#example)

```
use odsPhpGenerator\ods;
use odsPhpGenerator\odsTable;
use odsPhpGenerator\odsTableRow;
use odsPhpGenerator\odsTableCellString;

// Load library
require_once '../vendor/autoload.php';

// Create Ods object
$ods  = new ods();

// Create table named 'table 1'
$table = new odsTable('table 1');

// Create the first row
$row   = new odsTableRow();

// Create and add 2 cell 'Hello' and 'World'
$row->addCell( new odsTableCellString("Hello") );
$row->addCell( new odsTableCellString("World") );

// Attach row to table
$table->addRow($row);

// Attach talble to ods
$ods->addTable($table);

// Download the file
$ods->downloadOdsFile("HelloWorld.ods");
```

More examples in directory examles

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance64

Regular maintenance activity

Popularity26

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

140d ago

PHP version history (2 changes)v0.0.3PHP &gt;=5.3

v0.0.4PHP &gt;=5.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/331ae44f96890a0ea0c93aa40777522a9289b92029252676861306d9cd2d8996?d=identicon)[Lapinator](/maintainers/Lapinator)

---

Top Contributors

[![Lapinator](https://avatars.githubusercontent.com/u/1932123?v=4)](https://github.com/Lapinator "Lapinator (26 commits)")

---

Tags

odsLibreOffice

### Embed Badge

![Health badge](/badges/lapinator-ods-php-generator/health.svg)

```
[![Health](https://phpackages.com/badges/lapinator-ods-php-generator/health.svg)](https://phpackages.com/packages/lapinator-ods-php-generator)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k286.2M1.1k](/packages/phpoffice-phpspreadsheet)[openspout/openspout

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

1.1k54.0M98](/packages/openspout-openspout)[phpoffice/phppresentation

PHPPresentation - Read, Create and Write Presentations documents in PHP

1.4k2.3M22](/packages/phpoffice-phppresentation)[gotenberg/gotenberg-php

A PHP client for interacting with Gotenberg, a developer-friendly API for converting numerous document formats into PDF files, and more!

3674.8M15](/packages/gotenberg-gotenberg-php)[nuovo/spreadsheet-reader

Spreadsheet reader library for Excel, OpenOffice and structured text files

669854.3k8](/packages/nuovo-spreadsheet-reader)[dcat/easy-excel

使用简单实用的语义化接口快速读写Excel文件

155367.9k21](/packages/dcat-easy-excel)

PHPackages © 2026

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