承接 webimpress/safe-writer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

webimpress/safe-writer

最新稳定版本:2.2.0

Composer 安装命令:

composer require webimpress/safe-writer

包简介

Tool to write files safely, to avoid race conditions

README 文档

README

Unit Tests Coding Standards Static Analysis Coverage Status

Write files safely to avoid race conditions when the same file is written multiple times in a short time period.

Installation

Using composer:

composer require webimpress/safe-writer

Usage

use Webimpress\SafeWriter\FileWriter;

$targetFile = __DIR__ . '/target-file.php';
$content = "<?php\nreturn " . var_export($data, true) . ';';

FileWriter::writeFile($targetFile, $content);

If something goes wrong exception (instance of Webimpress\SafeWriter\Exception\ExceptionInterface) will be thrown.

统计信息

  • 总下载量: 38.16M
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 381
  • 点击次数: 2
  • 依赖项目数: 28
  • 推荐数: 0

GitHub 信息

  • Stars: 378
  • Watchers: 5
  • Forks: 9
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-2-Clause
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固