tyesty/phpitbar

用于使用 PHP 创建 Bitbar 插件的库

dev-master 2019-03-23 22:22 UTC

This package is auto-updated.

Last update: 2024-09-24 10:24:55 UTC


README

用于使用 PHP 创建 Bitbar 插件的库

用法

安装

{
  "require": {
    "tyesty/phpitbar": "^1.0"
  }
}

或者,您也可以通过命令行

$ composer require tyesty/phpitbar

结构

由于 Bitbar 会执行插件目录中的每个文件,您必须将所有 composer 相关内容(以及除主可执行 PHP 文件外的其他文件)移动到子目录中。这可能看起来像这样

.
├── yourplugin/
│   ├── src/
│   ├── composer.json
│   └── vendor/
└── test.5m.php

示例