承接 brunonatali/tools 相关项目开发

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

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

brunonatali/tools

Composer 安装命令:

composer require brunonatali/tools

包简介

Tools to help development.

README 文档

README

Set of tools that will help you to develop a program without need to rewrite code.

This lib was write thinking to help new projects, bringing them to life much more easier.

Table of Contents

Quickstart example

This is the ways to be construct this:

$systemInteraction = new BrunoNatali\Tools\SystemInteraction();

// Alternatively you can set system folder by hand

$mySystemFolder = ['/home/user/myApp/', '/var/myfolder/myApp/'];
$systemInteraction = new BrunoNatali\Tools\SystemInteraction($mySystemFolder);

System Interaction

setAppInitiated()

The setAppInitiated() method set app running by provided name, creating system file with current pid and handling requested shutdown.

$systemInteraction->setAppInitiated("MyAppName" [,bool $handleShutDown]): bool;

getAppInitiated()

The getAppInitiated() get info from system folder to inform if this app was set as initiated.

$systemInteraction->getAppInitiated(string $appName): bool;

setFunctionOnAppAborted()

The setFunctionOnAppAborted() will provide a method where you can add functions that must be executed before system shut down.

$systemInteraction->setFunctionOnAppAborted(callable $func): bool;

setAborted()

The setAborted() is generally used internal, but you could call this function to manually set app aborted and close script.

$systemInteraction->setAborted(void);

Install

The recommended way to install this library is through Composer. New to Composer?

This project follows SemVer. This will install the latest supported version:

$ composer require brunonatali/tools:^1.0

This project aims to run on any platform and thus does not require any PHP extensions, but actually not tested in all environments. If you find a bug, please report.

License

MIT, see LICENSE file.

统计信息

  • 总下载量: 124
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 6
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固