oveleon/youtrack-api-php
Composer 安装命令:
composer require oveleon/youtrack-api-php
包简介
PHP Adapter for the YouTrack REST API
README 文档
README
This bundle is a PHP wrapper for the YouTrack REST API. It allows communication with your YouTrack instance.
Installation
$ composer require oveleon/youtrack-api-php
Getting Started
use Oveleon\YouTrack\Client; use Oveleon\YouTrack\HttpClient\HttpClient; // Create http client to use. // You can write your own adapter and use the HttpClientInterface to use e.g. the Guzzle HttpClient. // By default, the HttpClient of Symfony is used. $httpClient = new HttpClient('https://example.myjetbrains.com', 'perm:your-token'); // Create api client $api = new Client($httpClient); // Get issues $issues = $api->issues() ->all(); // Refine the query using the filter method $issues = $api->issues() ->filter('state:resolved') ->all(); // Cool, but now we would like to specify the return fields... $issues = $api->issues() ->fields(['summary', 'description']) ->filter('state:resolved') ->all(); // The query on a specific Project can also be refined in exactly the same way $issues = $api->issues() ->filter('state:unresolved') ->project('PROJECT_ID'); // The predefined query `findByProject` does nothing more than define a filter for you (In YouTrack the // filter is described as `query`), so you could also define the following filter to get the same result $issues = $api->issues() ->filter('project:SampleProject') ->all(); // Use pagination... $issues = $api->issues() ->paginate(0, 10) ->all(); // And now we use another endpoint $projects = $api->projects() ->all(); // ...
Documentation
Read the full Documentation.
References
- YouTrack REST API Documentation
- Use Parsedown or other Markdown parsers to convert descriptions of issues and the like into HTML.
- A simple ticket system based on this API for the open source CMS Contao
Contributing
The API currently supports only a subset of the available options. The basic structure has been prepared so that contributing and adding new endpoints is easy. The structure should be self-explanatory, but feel free to open an issue if you have any questions or comments. Supplementary queries or new entry points must be provided as pull requests.
ToDo:
- Provide more endpoints
- Extend existing endpoints (e.g. create Issue)
- Documentation
oveleon/youtrack-api-php 适用场景与选型建议
oveleon/youtrack-api-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.86k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2023 年 01 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「api」 「youtrack」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 oveleon/youtrack-api-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 oveleon/youtrack-api-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 oveleon/youtrack-api-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The bundle for easy using json-rpc api on your project
PHP YouTrack Software Development Kit.
A PSR-7 compatible library for making CRUD API endpoints
Bundle Symfony DaplosBundle
Laravel artisan commands for YouTrack workflow automation — extracted so dev-agent and any consumer Laravel project share one source of truth.
Laravel wrapper for PHP YouTrack SDK.
统计信息
- 总下载量: 7.86k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AGPL-3.0-or-later
- 更新时间: 2023-01-17