yandex-tracker-api / yandex-tracker-api
此包最新版本(dev-master)没有可用的许可证信息。
Yandex Tracker API
dev-master
2022-12-10 20:33 UTC
Requires
- ext-curl: *
- ext-json: *
- guzzlehttp/guzzle: ^7.0
- json-mapper/json-mapper: ^2.14
- monolog/monolog: ^2.0|^3.0
- vlucas/phpdotenv: ^5.0|^6.0
Requires (Dev)
- mockery/mockery: ^1.0|^2.0
- phpstan/phpstan: ^1.0|^2.0
- phpunit/phpunit: ^9.0|^10.0
This package is auto-updated.
Last update: 2024-09-11 00:13:58 UTC
README
安装
composer require yandex-tracker-api/yandex-tracker-api
添加自动加载(你应该知道)
如果你喜欢Laravel(我推荐),那么在 config/app.php
中添加类 YandexTrackerApi\YandexTrackerApi\YandexTrackerApiServiceProvider
。
配置
创建 .env
文件,参考 .env.example
中的设置
使用
创建任务
<?php require 'vendor/autoload.php'; use YandexTrackerApi\YandexTrackerApi\Issue\IssueService; use YandexTrackerApi\YandexTrackerApi\Issue\Issue; $issue = new Issue(); $issue->setQueue('Intensa')->setSummary('One love'); $issueService = new IssueService(); try { $issue = $issueService->createIssue($issue); } catch (\GuzzleHttp\Exception\GuzzleException $e) { print('Ошибочка! ' . $e->getMessage()); }
可以做更多,但没时间解释了)))