PHPackages                             sociallydev/spaces-api - 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. sociallydev/spaces-api

ActiveLibrary[API Development](/categories/api)

sociallydev/spaces-api
======================

Library for accessing Digital Ocean spaces

3.6.1(2y ago)216444.9k↓39.4%99MITPHPPHP &gt;=7.3CI failing

Since Jun 4Pushed 2y ago10 watchersCompare

[ Source](https://github.com/SociallyDev/Spaces-API)[ Packagist](https://packagist.org/packages/sociallydev/spaces-api)[ RSS](/packages/sociallydev-spaces-api/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (12)Used By (0)

This library is deprecated
==========================

[](#this-library-is-deprecated)

We recommend using the [official SDK](https://github.com/DigitalOceanPHP/Client) or the [Laravel package](https://github.com/GrahamCampbell/Laravel-DigitalOcean)

All issues will be closed and new PRs will not be accepted

Installation
------------

[](#installation)

Install via composer

```
composer require sociallydev/spaces-api

```

Quick start
-----------

[](#quick-start)

Obtain API keys from the [Digital Ocean Applications &amp; API dashboard](https://cloud.digitalocean.com/account/api/tokens)

```
use SpacesAPI\Spaces;

// Connect to a space
$spaces = new Spaces('api-key', 'api-secret');
$space = $spaces->space('space-name');

// Download a file
$file = $space->file('remote-file-1.txt');
$file->download('local/file/path/file.txt');

// Upload text to a file
$file2 = $space->uploadText("Lorem ipsum","remote-file-2.txt");

// Get a signed public link, valid for 2 hours
$file2url = $file2->getSignedURL("2 hours");

// Make a copy
$file3 = $file2->copy('remote-file-3.txt');

// Move or rename a file
$file2->move('new-filename.txt')

// Make a file public and get the URL
$file3->makePublic();
$file3url = $file3->getURL();
```

See more examples in [docs/Examples.md](docs/Examples.md)

Upgrading?
----------

[](#upgrading)

Version 3 has many changes over version 2, so we have written a [migration guide](docs/Upgrade2-3.md)

API reference
-------------

[](#api-reference)

- [\\SpacesAPI\\Spaces](docs/Spaces.md)
- [\\SpacesAPI\\Space](docs/Space.md)
- [\\SpacesAPI\\File](docs/File.md)

###  Health Score

44

—

FairBetter than 90% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity56

Moderate usage in the ecosystem

Community27

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 79.2% 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 ~165 days

Recently: every ~200 days

Total

11

Last Release

907d ago

Major Versions

2.0.1 → 3.0.02021-08-09

PHP version history (3 changes)v1PHP &gt;=5.3.0

v2PHP &gt;=5.4.0

3.0.0PHP &gt;=7.3

### Community

Maintainers

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

---

Top Contributors

[![SociallyDev](https://avatars.githubusercontent.com/u/29544121?v=4)](https://github.com/SociallyDev "SociallyDev (61 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![AndreyNazarchuk](https://avatars.githubusercontent.com/u/7192775?v=4)](https://github.com/AndreyNazarchuk "AndreyNazarchuk (2 commits)")[![Abdelhady](https://avatars.githubusercontent.com/u/2075626?v=4)](https://github.com/Abdelhady "Abdelhady (2 commits)")[![juhchamp](https://avatars.githubusercontent.com/u/44661803?v=4)](https://github.com/juhchamp "juhchamp (2 commits)")[![bilaltas](https://avatars.githubusercontent.com/u/12401765?v=4)](https://github.com/bilaltas "bilaltas (1 commits)")[![richellyitalo](https://avatars.githubusercontent.com/u/1899604?v=4)](https://github.com/richellyitalo "richellyitalo (1 commits)")[![exabakr](https://avatars.githubusercontent.com/u/2453331?v=4)](https://github.com/exabakr "exabakr (1 commits)")[![fossabot](https://avatars.githubusercontent.com/u/29791463?v=4)](https://github.com/fossabot "fossabot (1 commits)")[![alessandroaussems](https://avatars.githubusercontent.com/u/22371019?v=4)](https://github.com/alessandroaussems "alessandroaussems (1 commits)")[![Alex-DA](https://avatars.githubusercontent.com/u/790418?v=4)](https://github.com/Alex-DA "Alex-DA (1 commits)")[![alexkolakov](https://avatars.githubusercontent.com/u/4527112?v=4)](https://github.com/alexkolakov "alexkolakov (1 commits)")[![miro-ux](https://avatars.githubusercontent.com/u/7188826?v=4)](https://github.com/miro-ux "miro-ux (1 commits)")

---

Tags

apiawsdigitaloceanphpspaceswrapper

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sociallydev-spaces-api/health.svg)

```
[![Health](https://phpackages.com/badges/sociallydev-spaces-api/health.svg)](https://phpackages.com/packages/sociallydev-spaces-api)
```

###  Alternatives

[keboola/storage-api-client

Keboola Storage API PHP Client

10397.4k31](/packages/keboola-storage-api-client)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45344.0k1](/packages/pressbooks-pressbooks)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1348.1k1](/packages/jasara-php-amzn-selling-partner-api)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

121242.9k1](/packages/ellaisys-aws-cognito)[thephalcons/amazon-webservices-bundle

A Symfony2 Bundle for interfacing with Amazon Web Services (AWS)

110225.6k](/packages/thephalcons-amazon-webservices-bundle)[altis/core

Core module for Altis

19222.5k2](/packages/altis-core)

PHPackages © 2026

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