yandex-tracker-api / yandex-tracker-api
There is no license information available for the latest version (dev-master) of this package.
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: 2025-04-11 01:39:23 UTC
README
Установка
composer require yandex-tracker-api/yandex-tracker-api
Добавьте autoload (ну вы в курсе)
Если вы ларавелолюб (одобряю), то добавьте в 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()); }
Можно сделать ещё что-то, но некогда объяснять ))