PHPackages                             devvoh/fixedwidth - 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. devvoh/fixedwidth

ActiveLibrary

devvoh/fixedwidth
=================

FixedWidth is a library to read and generate fixed-width data files

0.2.6(6y ago)43.6k3[1 issues](https://github.com/devvoh/fixed-width/issues)[2 PRs](https://github.com/devvoh/fixed-width/pulls)UnlicensePHPPHP &gt;=5.6

Since Nov 9Pushed 4y ago3 watchersCompare

[ Source](https://github.com/devvoh/fixed-width)[ Packagist](https://packagist.org/packages/devvoh/fixedwidth)[ Docs](http://devvoh.com/fixedwidth)[ RSS](/packages/devvoh-fixedwidth/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)DependenciesVersions (9)Used By (0)

Fixed Width File Reader &amp; Generator
---------------------------------------

[](#fixed-width-file-reader--generator)

[![Latest Stable Version](https://camo.githubusercontent.com/a8c7e20bcaa01b773b488b8b6daa4f1285717d5895a4fe6234451b9cc46d5001/68747470733a2f2f706f7365722e707567782e6f72672f646576766f682f666978656477696474682f762f737461626c65)](https://packagist.org/packages/devvoh/fixedwidth)[![Latest Unstable Version](https://camo.githubusercontent.com/226158db55068780a490e4ce4680e5ae1690a83f26415f118ec17f50e08d5eaf/68747470733a2f2f706f7365722e707567782e6f72672f646576766f682f666978656477696474682f762f756e737461626c65)](https://packagist.org/packages/devvoh/fixedwidth)[![License](https://camo.githubusercontent.com/b6b65ebbb5b37c1a39c49323be969828d90eec2cf2af809d10572c7569c0f052/68747470733a2f2f706f7365722e707567782e6f72672f646576766f682f666978656477696474682f6c6963656e7365)](https://packagist.org/packages/devvoh/fixedwidth)

Fixed-width is a simple library that can make working with fixed width file formats much easier. You define a Schema for a line, which can have a delimiter or not, and both the Reader and Generator will work with that Schema.

You can define valid characters, and the line or data will be rejected if it doesn't adhere to it. If a delimiter is found in a data value, it's rejected. If a line is rejected, the `Reader` will return `null`, which you can then interpret as you wish. If a dataItem is rejected, the `Generator` will return `-- invalid data: data`.

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

[](#requirements)

- PHP 5.6, PHP 7

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

[](#installation)

Fixed-width can be installed by using [Composer](http://getcomposer.org/). Simply run:

`composer require devvoh/fixedwidth`

License
-------

[](#license)

Fixed-width is open-sourced software licensed under the [Unlicense](http://unlicense.org/).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance15

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~191 days

Recently: every ~286 days

Total

7

Last Release

2330d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7db40df70c77a9d591de4521642b0ddcb6c448e4876b22dc2f76900c736ab579?d=identicon)[robindevoh](/maintainers/robindevoh)

---

Top Contributors

[![thebatclaudio](https://avatars.githubusercontent.com/u/1524134?v=4)](https://github.com/thebatclaudio "thebatclaudio (1 commits)")[![wilsenhc](https://avatars.githubusercontent.com/u/13445515?v=4)](https://github.com/wilsenhc "wilsenhc (1 commits)")

---

Tags

libraryfixed width

### Embed Badge

![Health badge](/badges/devvoh-fixedwidth/health.svg)

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

###  Alternatives

[filp/whoops

php error handling for cool kids

13.2k402.4M1.4k](/packages/filp-whoops)[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.6k](/packages/mockery-mockery)[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)[ecentria/ecentria-rest-bundle

Goal of this bundle is to simplify process of creating APIs with Symfony. We use already well-coded libraries, combine them together to simplify process and not to re-invent the wheel. We've chose REST and HATEOS to have unified standards of API requests and responses.

142.4k](/packages/ecentria-ecentria-rest-bundle)

PHPackages © 2026

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