bluebaytravel/centurian

此包已被废弃,不再维护。未建议替代包。

一个用于通知Sentry新版本的PHP包。

dev-master / 1.0.x-dev 2018-01-02 08:55 UTC

This package is not auto-updated.

Last update: 2020-01-24 16:21:12 UTC


README

Centurian是一个Laravel包,它添加了管理Sentry实例中发布的管理命令。

安装

需要PHP 5.5+或HHVM 3.6+。

要获取Blue Bay Travel Centurian的最新版本,只需使用Composer引入项目。

$ composer require bluebaytravel/centurian

当然,您也可以手动更新require块并运行composer update

{
    "require": {
        "bluebaytravel/centurian": "^1.0"
    }
}

一旦安装了Blue Bay Travel Centurian,您需要注册服务提供者。打开config/app.php并在providers键中添加以下内容。

  • 'BlueBayTravel\Centurian\CenturianServiceProvider'

加载服务提供者后,发布配置

$ php artisan vendor:publish

您需要Sentry API密钥,您可以在Sentry仪表板中的“API密钥”页面找到。除了API密钥外,您还需要知道您要为其发布版本的组织和项目别名。

开始的一个更简单的方法是在您的.env文件中添加并配置以下值。

CENTURIAN_ENDPOINT=https://getsentry.com
CENTURIAN_ORG_SLUG=bluebaytravel
CENTURIAN_PROJECT_SLUG=centurian
CENTURIAN_TOKEN=YOUR_API_KEY

使用方法

配置好Centurian后,只需运行Artisan命令,提供版本号以发布。

$ php artisan centurian:release 1.0.0

许可证

Blue Bay Travel Centurian遵循MIT许可证(MIT)