PHPackages                             nackjicholson/file-parser - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. nackjicholson/file-parser

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

nackjicholson/file-parser
=========================

PHP package for parsing data contained in a file into a php array.

v2.1.0(11y ago)31.7k21MITPHPPHP &gt;=5.4CI failing

Since Sep 23Pushed 9y ago2 watchersCompare

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

READMEChangelog (7)Dependencies (2)Versions (8)Used By (1)

file-parser
===========

[](#file-parser)

This is a composer package for parsing files that contain structured data.

The current supported formats are:

- Csv
- Json
- Yaml
- .ini

**WARNING** Only works with PHP 5.4 and up due to short array syntax and use of traits.

Example:
--------

[](#example)

*foobar.yml*

```
foo: bar
```

*example.php*

```
