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 7mo 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 1mo ago

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

17

—

LowBetter than 6% of packages

Maintenance44

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://www.gravatar.com/avatar/d504eb3311a9080068001ba6048e7eacd142a557598bc28e831a4ac5c5054b10?d=identicon)[godswill](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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