BNRepo is a PHP5 library based on Gaufrette (https://github.com/KnpLabs/Gaufrette), that provides different Repositories for filesystem abstraction.