PHPackages                             alirashidnahal/polytext - 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. alirashidnahal/polytext

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

alirashidnahal/polytext
=======================

Framework-agnostic PHP library for parsing, reading, and writing text across many file formats.

v1.0.0(1mo ago)07[3 PRs](https://github.com/alirashidnahal/polytext/pulls)MITPHPPHP ^8.3CI passing

Since Jul 10Pushed 1w agoCompare

[ Source](https://github.com/alirashidnahal/polytext)[ Packagist](https://packagist.org/packages/alirashidnahal/polytext)[ RSS](/packages/alirashidnahal-polytext/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (12)Versions (3)Used By (0)

Polytext
========

[](#polytext)

Framework-agnostic PHP library for parsing, reading, and writing text across many file formats.

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

[](#requirements)

- PHP 8.3+
- Extensions: `dom`, `fileinfo`, `json`, `mbstring`, `zip`

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

[](#installation)

```
composer require alirashidnahal/polytext
```

Quick Start
-----------

[](#quick-start)

```
use Alirashidnahal\Polytext\Polytext;

$polytext = new Polytext();
$document = $polytext->open('report.docx');

foreach ($document->nodes() as $node) {
    $node->setText(strtoupper($node->text()));
}

$document->save('report-modified.docx');
```

Supported Formats
-----------------

[](#supported-formats)

CategoryExtensionsTexttxt, text, log, md, markdownSubtitlessrt, vtt, ass, ssa, subWebhtml, htm, xmlDatajson, csv, yaml, ymlOfficedocx, odt, rtf, xlsx, xls, ods, pptx, pptPDFpdfLaravel
-------

[](#laravel)

Auto-discovery registers `PolytextServiceProvider` and the `Polytext` facade.

```
use Alirashidnahal\Polytext\Laravel\Facades\Polytext;

$document = Polytext::open(storage_path('app/file.docx'));
```

Publish config:

```
php artisan vendor:publish --tag=polytext-config
```

Development
-----------

[](#development)

```
composer install
composer test
composer analyse
composer format
```

License
-------

[](#license)

MIT © Ali Rashidnahal

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance94

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97% 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

Unknown

Total

1

Last Release

48d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/89281413695300c6c0690c6d20f29f9e0aa7e58050c07d3678c7b1ce1aeb1fa0?d=identicon)[alirashidnahal](/maintainers/alirashidnahal)

---

Top Contributors

[![alirashidnahal](https://avatars.githubusercontent.com/u/53545284?v=4)](https://github.com/alirashidnahal "alirashidnahal (32 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

docxfileparserpdfphpxlsxphppdfparserxlsxfiledocxsubtitlepolytext

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/alirashidnahal-polytext/health.svg)

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

###  Alternatives

[kimai/kimai

Kimai - Time Tracking

4.8k9.4k1](/packages/kimai-kimai)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

762297.9k53](/packages/civicrm-civicrm-core)[craftcms/cms

Craft CMS

3.6k3.7M3.5k](/packages/craftcms-cms)[statamic/cms

The Statamic CMS Core Package

4.9k3.8M1.2k](/packages/statamic-cms)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)[october/rain

October Rain Library

1601.7M105](/packages/october-rain)

PHPackages © 2026

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