Work with PHP files in Active Record way