walnut / lib_fileaccessor
There is no license information available for the latest version (0.0.2) of this package.
0.0.2
2022-05-13 20:31 UTC
Requires (Dev)
- phpunit/phpunit: ^9.5.20
- vimeo/psalm: ^4.23.0
This package is not auto-updated.
Last update: 2024-10-26 07:52:17 UTC
README
A tiny wrapper for basic CRUD-like file manipulations
$fileAccessor = new PhpFileAccessor; $fileName = 'test.txt'; $content = 'Test content.'; $fileAccessor->fileExists($fileName); //false $fileAccessor->writeToFile($fileName, $content); $fileAccessor->fileExists($fileName); //true $fileAccessor->readFromFile($fileName)); //Test content. $fileAccessor->removeFile($fileName); $fileAccessor->fileExists($fileName); //false