Phlat makes it easy to work with flatfiles in PHP. You have all basic and some not so basic operations available with very simple commands, like, add, delete, modify, truncate, and more.
For a PHP example file, check this file.
For more documentation, check the online documentation, or the "doc" folder included in the 7z.
To Add:
- ? Ideas