承接 morris/sync 相关项目开发

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

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

morris/sync

最新稳定版本:v1.0.0

Composer 安装命令:

composer require morris/sync

包简介

Synchronized function calls for PHP

README 文档

README

<?php

// Call a function in a mutually exclusive way using a lockfile.
// A process will only block other processes and never block itself,
// so you can safely nest synchronized operations.

Sync::call( function() {

	// do critical stuff like IO here

} );

// Set default lockfile

Sync::$lock = 'my/default/.lock';

// Use different lockfile by passing it as the second argument

Sync::call( $func, 'my/other/.lock' );

Requirements

  • PHP 5.3+

Installation

The composer package name is morris/sync. You can also download or fork the repository.

License

Sync is licensed under the MIT License. See LICENSE.md for details.

统计信息

  • 总下载量: 2.91k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-08-17