PHPackages                             scottbass3/harbor-api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. scottbass3/harbor-api-client

ActiveLibrary[API Development](/categories/api)

scottbass3/harbor-api-client
============================

This package provides API models and a client for Harbor

v1.0.1(8mo ago)141MITPHPPHP ^8.3

Since Aug 22Pushed 8mo agoCompare

[ Source](https://github.com/scottbass3/harbor-api-client)[ Packagist](https://packagist.org/packages/scottbass3/harbor-api-client)[ RSS](/packages/scottbass3-harbor-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

[![MIT license](https://camo.githubusercontent.com/4661abfe916186acde514558e7f040833cb63ba7098401a51ce339cbb2b4cf9e/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](http://opensource.org/licenses/MIT)

Harbor OpenAPI client
=====================

[](#harbor-openapi-client)

This package provides a client for [Harbor](https://goharbor.io/). It was auto-generated with [Jane](https://github.com/janephp/janephp) based on the Harbor API v2.

Rebuilding the client library
-----------------------------

[](#rebuilding-the-client-library)

Jane provides commands for generating the client code. Switch to this package's directory and install Composer dependencies. You can then run a command for generating the code:

```
composer update
bin/jane-openapi-generate
```

Usage
-----

[](#usage)

The client is instantiated using the `create()` factory method. The following example shows how to create a project, authenticating with username and password of a Harbor robot user:

```
use Http\Client\Common\Plugin\AddHostPlugin;
use Http\Client\Common\Plugin\AddPathPlugin;
use Http\Client\Common\Plugin\AuthenticationPlugin;
use Http\Message\Authentication\BasicAuth;
use Scottbass3\Harbor\Api\Model\ProjectReq;

…

$client = \Scottbass3\Harbor\Api\Client::create(
    null,
    [
        new AddHostPlugin(
            $endpointUri
        ),
        new AddPathPlugin(
            $endpointUri
        ),
        new AuthenticationPlugin(
            new BasicAuth(
                $username,
                $password,
            )
        )
    ]
);

$projectRequest = new ProjectReq();
$projectRequest
    ->setProjectName((string)$projectName)
    ->setPublic(false);

$client->createProject($projectRequest);
```

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance59

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

264d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3f4e2c5192f9a6bb969dc83e8ecb79c49114efff04c940acaa9b47fdd3402d6?d=identicon)[scottbass3](/maintainers/scottbass3)

---

Top Contributors

[![robertlemke](https://avatars.githubusercontent.com/u/95582?v=4)](https://github.com/robertlemke "robertlemke (3 commits)")[![scottbass3](https://avatars.githubusercontent.com/u/46672906?v=4)](https://github.com/scottbass3 "scottbass3 (2 commits)")

---

Tags

apiharbor

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/scottbass3-harbor-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/scottbass3-harbor-api-client/health.svg)](https://phpackages.com/packages/scottbass3-harbor-api-client)
```

###  Alternatives

[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[m165437/laravel-blueprint-docs

API Blueprint Renderer for Laravel

22779.0k](/packages/m165437-laravel-blueprint-docs)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
