kherge/file (packagist): An extension of SplFileObject that uses exceptions.
Keywords: file|exception|object