aedart / athenaeum-redmine
适用于 Laravel 的 Redmine API 客户端
8.10.0
2024-09-04 09:18 UTC
Requires
- php: ^8.2
- ext-json: *
- aedart/athenaeum-dto: ^8.10
- aedart/athenaeum-http-clients: ^8.10
- aedart/athenaeum-pagination: ^8.10
- dev-main
- 8.10.0
- 8.9.0
- 8.8.0
- 8.7.0
- 8.6.0
- 8.5.0
- 8.4.0
- 8.3.0
- 8.2.0
- 8.1.0
- 8.0.0
- 7.33.0
- 7.32.0
- 7.31.0
- 7.30.1
- 7.30.0
- 7.29.0
- 7.28.0
- 7.27.0
- 7.26.0
- 7.25.0
- 7.24.0
- 7.23.0
- 7.22.1
- 7.22.0
- 7.21.0
- 7.20.0
- 7.19.0
- 7.18.1
- 7.18.0
- 7.17.0
- 7.16.0
- 7.15.0
- 7.14.0
- 7.13.0
- 7.12.0
- 7.11.3
- 7.11.2
- 7.11.1
- 7.11.0
- 7.10.1
- 7.10.0
- 7.9.1
- 7.9.0
- 7.8.0
- 7.7.2
- 7.7.1
- 7.7.0
- 7.6.0
- 7.5.0
- 7.4.0
- 7.3.0
- 7.2.0
- 7.1.0
- 7.0.1
- 7.0.0
- 7.0.0-alpha.1
- 6.8.1
- 6.8.0
- 6.7.0
- 6.6.0
- 6.5.2
- 6.5.1
- 6.5.0
- 6.4.0
- 6.3.0
- 6.2.1
- 6.2.0
- 6.1.1
- 6.1.0
- 6.0.2
- 6.0.1
- 6.0.0
- 5.27.0
- 5.26.0
- 5.25.0
- 5.24.2
- 5.24.1
- 5.24.0
- 5.23.0
- 5.22.4
- 5.22.3
- 5.22.2
- 5.22.1
- 5.22.0
- 5.21.0
- 5.20.0
- 5.19.0
This package is auto-updated.
Last update: 2024-09-23 07:56:14 UTC
README
A Laravel Redmine API 客户端,设计得看起来和感觉像是一个 活动记录。
示例:
use Aedart\Redmine\Issue; use Aedart\Redmine\Project; use Aedart\Redmine\IssueCategory; use Aedart\Contracts\Http\Clients\Requests\Builder; // Create resources $project = Project::create([ 'name' => 'Deus Ex', 'identifier' => 'deus-ex' ]); // Fetch list of resources, apply filters to http request... $issues = Issue::fetchMultiple(function(Builder $request) { return $request->where('assigned_to_id', 'me'); }); // Change existing resources $category = IssueCategory::findOrFail(1344); $category->update([ 'name' => 'Business Goals' ]); // ...or remove them Issue::findOrFail(9874) ->delete();
兼容性
*:此包也可能与 Redmine 的新版本兼容。
限制
此包提供了“资源”,涵盖了 Redmine 的大多数 REST Api。然而,如果您之前使用过 Redmine 的 API,那么您知道它可能有些不一致。根据您正在处理的资源,您可能无法执行某些操作,因为 API 不支持这些操作。因此,您可能会遇到以下异常
\Aedart\Contracts\Redmine\Exceptions\UnsupportedOperationException
请查阅 Redmine 的 Api 文档,以了解当前 API 版本支持哪些操作。
替代方案
您可能还对其他 Redmine API 客户端感兴趣
- tuner88/laravel-redmine-api,用于
kbsali/redmine-api
的 Laravel 包装器 - limetecbiotechnologies/redmineapibundle ,用于
kbsali/redmine-api
的 Symfony 包装器 - kbsali/redmine-api
文档
请阅读官方文档以获取更多信息。
仓库
单一代码库位于 github.com/aedart/athenaeum
版本
此包遵循 Semantic Versioning 2.0.0
许可证
BSD-3-Clause,请阅读此包中包含的 LICENSE 文件