PHPackages                             giftcards/fixed-width - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. giftcards/fixed-width

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

giftcards/fixed-width
=====================

Library for working with fixed width files as well as their associated specs

1.5.2(6y ago)1076.2k↓39.3%4[2 issues](https://github.com/giftcards/FixedWidth/issues)1MITPHPPHP &gt;=7.3

Since Sep 16Pushed 6y ago9 watchersCompare

[ Source](https://github.com/giftcards/FixedWidth)[ Packagist](https://packagist.org/packages/giftcards/fixed-width)[ RSS](/packages/giftcards-fixed-width/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (16)Used By (1)

Fixed Width [![Build Status](https://camo.githubusercontent.com/09e69de5a04dbbc39fbb0c8a285f721646cf6d18bf7bf64956452290c08fccfd/68747470733a2f2f7472617669732d63692e6f72672f6769667463617264732f466978656457696474682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/giftcards/FixedWidth)
=======================================================================================================================================================================================================================================================================================================

[](#fixed-width-)

Purpose
-------

[](#purpose)

The fixed width library's purpose is to make working with fixed width files a bit easier. Includes things like easily accessing line and field indexes and using a file spec to allow for setting a loading value using field names instead of indexes and ranges

Usage
-----

[](#usage)

### Basic

[](#basic)

for real simple fixed width file work you can create a new Instance of `File` and add lines to it setting indexes on ines and adding lines

```
