scottbass3/harbor-api-bundle
最新稳定版本:v1.0.0
Composer 安装命令:
composer require scottbass3/harbor-api-bundle
包简介
A Wrapper for Harbor API v2 Client library for PHP
README 文档
README
A Symfony bundle to communicate with Harbor API v2. This bundle is a wrapper for harbor api client.
Installation
If your application is using Symfony Flex, run this command to install the bundle :
composer require scottbass3/harbor-api-bundle
Then add the configuration in your packages config directory :
# config/packages/scottbass3_harbor_api.yaml scottbass3_harbor_api: base_uri: 'https://exemple.com/api/v2.0' login: 'test' password: 'changeme'
Basic Usage
namespace App\Controller; use Scottbass3\HarborApiBundle\HarborClient; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; class DefaultController extends AbstractController { public function index(HarborClient $client) { $projectReq = (new ProjectReq()) ->setProjectName('my-project'); $client->getHarborClient()->createProject($projectReq); $artifacts = $client->getHarborClient()->listArtifacts('my-project', 'my-repository'); } }
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-22