PHPackages                             nugitech/cloudbridge-php - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. nugitech/cloudbridge-php

ActiveLibrary[HTTP &amp; Networking](/categories/http)

nugitech/cloudbridge-php
========================

CloudBridge PHP SDK (upload API client)

05PHP

Since Oct 2Pushed 9mo agoCompare

[ Source](https://github.com/nugitech/cloudbridge-php-sdk)[ Packagist](https://packagist.org/packages/nugitech/cloudbridge-php)[ RSS](/packages/nugitech-cloudbridge-php/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

CloudBridge PHP SDK (PHP 7.2+)
==============================

[](#cloudbridge-php-sdk-php-72)

Production-grade PHP SDK to upload files to CloudBridge using cURL.

Install
-------

[](#install)

```
composer require nugitech/cloudbridge-php:dev-master
```

Requirements
------------

[](#requirements)

- PHP 7.2+
- ext-curl enabled

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use CloudBridge\CloudBridgeClient;

$client = new CloudBridgeClient('NUGI-AK-ACCESS', 'SECRET');

// Single
$result = $client->uploadFile('/path/to/logo.png', 'ghost/up');
print_r($result);

// Multiple
$result = $client->uploadFiles([
    '/path/to/file1.jpg',
    '/path/to/file2.png'
], 'ghost/up');
print_r($result);
```

Environment variables
---------------------

[](#environment-variables)

- `CLOUDBRIDGE_BASE_URL` (default `https://api.cloudbridge.nugitech.com`)
- `CLOUDBRIDGE_ACCESS_KEY`
- `CLOUDBRIDGE_SECRET_KEY`

API
---

[](#api)

- `__construct(?string $accessKey = null, ?string $secretKey = null, ?string $baseUrl = null, int $timeout = 60)`
- `setCredentials(string $accessKey, string $secretKey): void`
- `setBaseUrl(string $baseUrl): void`
- `uploadFile(string $filePath, string $folder): array`
- `uploadFiles(array $filePaths, string $folder): array`

### Auth &amp; Endpoint

[](#auth--endpoint)

- Base URL: `https://api.cloudbridge.nugitech.com`
- Upload: `${BASE_URL}/api/v1/public/upload`
- Headers:
    - `x-access-key: `
    - `x-signature: HMAC-SHA256(accessKey, secretKey)`

### Responses

[](#responses)

- Success

```
{
    "success": true,
    "files": [
        {
            "filename": "pw.zip",
            "size": 62756366,
            "public_url": "https://...",
            "short_url": "https://...",
            "nextcloud_path": "apps/..."
        }
    ]
}
```

- Error (non-401)

```
{
    "success": false,
    "status": "error",
    "message": "Validation failed",
    "errors": ["..."]
}
```

- Invalid credentials → throws `CloudBridge\\Exceptions\\InvalidCredentialsException`

Testing
-------

[](#testing)

```
composer install
composer test
```

License
-------

[](#license)

MIT

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance41

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8287075?v=4)[godswill](/maintainers/godswill)[@Godswill](https://github.com/Godswill)

---

Top Contributors

[![Prowillz](https://avatars.githubusercontent.com/u/41216642?v=4)](https://github.com/Prowillz "Prowillz (3 commits)")

### Embed Badge

![Health badge](/badges/nugitech-cloudbridge-php/health.svg)

```
[![Health](https://phpackages.com/badges/nugitech-cloudbridge-php/health.svg)](https://phpackages.com/packages/nugitech-cloudbridge-php)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M91](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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