nette/safe-stream
Nette SafeStream provides a stream wrapper for atomic file operations, ensuring files are never left partially written or corrupted. It supports file locking and safe concurrent access, making it ideal for writing configs, caches, and logs reliably in PHP applications.
nette/safe-stream provides a PHP stream wrapper for atomic file operations. It prevents readers from seeing partially written files by writing to a temporary file and atomically renaming it into place, making it suitable for caches, configuration, and other shared files.
safe:// protocol for standard PHP file functionsfile_get_contents(), file_put_contents(), fopen(), and moreHow can I help you explore Laravel packages today?