定制 scottbass3/harbor-api-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-22