承接 bitandblack/cli-notification 相关项目开发

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

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

bitandblack/cli-notification

Composer 安装命令:

composer require bitandblack/cli-notification

包简介

Notification sounds and popups from the CLI

README 文档

README

PHP from Packagist Total Downloads License

Bit&Black Logo

Bit&Black CLI Notification

Notification sounds and popups from the CLI.

Installation

This library is made for the use with Composer. Add it to your project by running $ composer require bitandblack/cli-notification.

Usage

Sound

Whenever you want to play a sound, call the Sound::play() method. It needs one parameter — the sound you want to play. You can use the SoundFileEnum that holds some basic sounds or provide your own class holding custom sounds by implementing the SoundFileInterface.

The play() method is static, so you don't need to initialize the class.

<?php

use BitAndBlack\CLINotification\Sound;
use BitAndBlack\CLINotification\SoundFile\SoundFileEnum;

Sound::play(
    SoundFileEnum::JOB_DONE
);

Popup

Whenever you want to show a popup, call the Popup::show() method. You can set the title, the message and an image there.

The show() method is static, so you don't need to initialize the class.

<?php

use BitAndBlack\CLINotification\Popup;

Popup::show(
    'Title', 
    'Message', 
    '/path/to/image.jpg'
);

Help

If you have any questions, feel free to contact us under hello@bitandblack.com.

Further information about Bit&Black can be found under www.bitandblack.com.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-04-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固