From 6bc100cf902a3a7654908a1adaf9ad8a4f2b9c35 Mon Sep 17 00:00:00 2001 From: David Wakelin Date: Wed, 1 Feb 2023 11:19:59 +0000 Subject: [PATCH 1/4] Added move example to readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 588a067..87723a7 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,9 @@ $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(); From 4f4b6148d23044237f14b7dd10c32910d95098c9 Mon Sep 17 00:00:00 2001 From: Aleksandar Kolakov <4527112+alexkolakov@users.noreply.github.com> Date: Sun, 18 Dec 2022 12:18:36 +0200 Subject: [PATCH 2/4] Fixed hardcoded region in Spaces constructor --- SpacesAPI/Spaces.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpacesAPI/Spaces.php b/SpacesAPI/Spaces.php index d822e8a..c248664 100644 --- a/SpacesAPI/Spaces.php +++ b/SpacesAPI/Spaces.php @@ -36,7 +36,7 @@ class Spaces { $this->s3 = new S3Client([ "version" => "latest", - "region" => "us-east-1", + "region" => $region, "endpoint" => "https://$region.$host", "credentials" => ["key" => $accessKey, "secret" => $secretKey], "ua_append" => "SociallyDev-Spaces-API/2", From 8ac092ea9685f7390abc63389335f55fc68fa720 Mon Sep 17 00:00:00 2001 From: David Wakelin Date: Fri, 15 Dec 2023 11:06:58 +0000 Subject: [PATCH 3/4] Version bump from bugfix --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a365e90..8eec5d8 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "sociallydev/spaces-api", "description": "Library for accessing Digital Ocean spaces", - "version":"3.6.0", + "version":"3.6.1", "type": "library", "license": "MIT", "authors": [ From 6b0f8f5e0344d6f6aefed164dd056ee9bb04d969 Mon Sep 17 00:00:00 2001 From: David Wakelin Date: Fri, 15 Dec 2023 11:07:08 +0000 Subject: [PATCH 4/4] Added deprecation notice --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 87723a7..b9137c1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ -![Spaces-API](https://imgur.com/NYNsQyl.png "Devang Srivastava's Spaces-API") +# 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) -PHP library for accessing Digital Ocean spaces +All issues will be closed and new PRs will not be accepted ## Installation Install via composer