PHPackages                             mkalkbrenner/odfphp - 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. mkalkbrenner/odfphp

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

mkalkbrenner/odfphp
===================

Simple PHP library to manipulate an ODF document.

1.0.5(8y ago)014.3k1GPL-3.0+PHP

Since Nov 15Pushed 8y ago2 watchersCompare

[ Source](https://github.com/mkalkbrenner/odfphp)[ Packagist](https://packagist.org/packages/mkalkbrenner/odfphp)[ Docs](https://github.com/mkalkbrenner/odfphp)[ RSS](/packages/mkalkbrenner-odfphp/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (6)DependenciesVersions (7)Used By (0)

odfphp
======

[](#odfphp)

PHP Library to create and edit OpenDocument formats like .odt, .ods, .odp etc. It provides Shortcuts to manipulate the files in an easy way. It is a fork of hanspolo/odfphp to supports newer PHP versions.

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

[](#basic-usage)

This section gives a short introduction in the manipulation of documents.

The first example shows how to create a new document. $type can be *text*, *spreadsheet* or an other document type.

```
   $document = new ODF();
   $document->create($type);
```

To save the document, you can use the following code. $path is used as the path where the document will be saved.

```
  $document->save($path);
```

If you want to extend an existing document, you can load it with this code.

```
  $document = new ODF();
  $document->open($path);
```

After initializing your document, you can call:

```
  $content = Text::getContentBody($document);
```

or, if you are editing an spreadsheet:

```
  $content = Spreadsheet::getContentBody($document);
```

Now you can add elements to your document. ODFphp provides some shortcuts to do this.

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

[](#installation)

Add the content of the src/ directory into your project. To use ODFphp you have to include at least the odf.php file.

License
-------

[](#license)

ODFphp is licensed under [GPL v.3](http://www.gnu.org/licenses/gpl.html)

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~98 days

Recently: every ~91 days

Total

6

Last Release

3015d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bc8e4b2a585cedae1909fc72a3a9f2808bdcd92e61189d20b9e613a8dc52f82?d=identicon)[mkalkbrenner](/maintainers/mkalkbrenner)

---

Top Contributors

[![akaservus](https://avatars.githubusercontent.com/u/16401889?v=4)](https://github.com/akaservus "akaservus (5 commits)")[![hanspolo](https://avatars.githubusercontent.com/u/587325?v=4)](https://github.com/hanspolo "hanspolo (1 commits)")

---

Tags

odf

### Embed Badge

![Health badge](/badges/mkalkbrenner-odfphp/health.svg)

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

###  Alternatives

[openspout/openspout

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

1.2k65.5M209](/packages/openspout-openspout)[seine/seine

Seine - Write spreadsheets of various formats to a stream

1270.5k](/packages/seine-seine)

PHPackages © 2026

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