mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-21 22:03:38 -07:00
Compare commits
4 commits
Author | SHA1 | Date | |
---|---|---|---|
|
6b0f8f5e03 | ||
|
8ac092ea96 | ||
|
4f4b6148d2 | ||
|
6bc100cf90 |
3 changed files with 8 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||

|
||||
# 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
|
||||
|
@ -32,6 +33,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();
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue