diff --git a/README.md b/README.md index b9137c1..588a067 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ -# 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) +![Spaces-API](https://imgur.com/NYNsQyl.png "Devang Srivastava's Spaces-API") -All issues will be closed and new PRs will not be accepted +PHP library for accessing Digital Ocean spaces ## Installation Install via composer @@ -33,9 +32,6 @@ $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(); diff --git a/SpacesAPI/Spaces.php b/SpacesAPI/Spaces.php index c248664..d822e8a 100644 --- a/SpacesAPI/Spaces.php +++ b/SpacesAPI/Spaces.php @@ -36,7 +36,7 @@ class Spaces { $this->s3 = new S3Client([ "version" => "latest", - "region" => $region, + "region" => "us-east-1", "endpoint" => "https://$region.$host", "credentials" => ["key" => $accessKey, "secret" => $secretKey], "ua_append" => "SociallyDev-Spaces-API/2", diff --git a/composer.json b/composer.json index 8eec5d8..a365e90 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.1", + "version":"3.6.0", "type": "library", "license": "MIT", "authors": [