File tree 8 files changed +32
-32
lines changed
8 files changed +32
-32
lines changed Original file line number Diff line number Diff line change 9
9
$ client = new Client ();
10
10
11
11
if (!empty ($ _GET ['test-put ' ])) {
12
- $ result = $ client ->put (' this-is- test.txt ' , 'Testing ' );
12
+ $ result = $ client ->put ($ _GET [ ' test-put ' ] , 'Testing ' );
13
13
14
14
echo "<pre> " ;
15
15
echo var_export ($ result , true );
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " dam-bal/vercel-blob-php" ,
3
- "description" : " Vercel Blob for PHP " ,
3
+ "description" : " PHP Client for Vercel Blob " ,
4
4
"type" : " library" ,
5
5
"autoload" : {
6
6
"psr-4" : {
13
13
}
14
14
],
15
15
"require" : {
16
- "php" : " ^8.2 " ,
16
+ "php" : " ^8.1 " ,
17
17
"guzzlehttp/guzzle" : " ^7.8"
18
18
}
19
19
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace VercelBlobPhp ;
4
4
5
- readonly class CommonCreateBlobOptions
5
+ class CommonCreateBlobOptions
6
6
{
7
7
public function __construct (
8
- public string $ access = 'public ' ,
9
- public ?bool $ addRandomSuffix = false ,
10
- public ?string $ contentType = null ,
11
- public ?int $ cacheControlMaxAge = null ,
8
+ public readonly string $ access = 'public ' ,
9
+ public readonly ?bool $ addRandomSuffix = false ,
10
+ public readonly ?string $ contentType = null ,
11
+ public readonly ?int $ cacheControlMaxAge = null ,
12
12
) {
13
13
}
14
14
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace VercelBlobPhp ;
4
4
5
- readonly class CopyBlobResult
5
+ class CopyBlobResult
6
6
{
7
7
public function __construct (
8
- public string $ url ,
9
- public string $ downloadUrl ,
10
- public string $ pathname ,
11
- public ?string $ contentType ,
12
- public string $ contentDisposition ,
8
+ public readonly string $ url ,
9
+ public readonly string $ downloadUrl ,
10
+ public readonly string $ pathname ,
11
+ public readonly ?string $ contentType ,
12
+ public readonly string $ contentDisposition ,
13
13
) {
14
14
}
15
15
}
Original file line number Diff line number Diff line change 4
4
5
5
use DateTime ;
6
6
7
- readonly class HeadBlobResult
7
+ class HeadBlobResult
8
8
{
9
9
public function __construct (
10
- public string $ url ,
11
- public string $ downloadUrl ,
12
- public int $ size ,
13
- public DateTime $ uploadedAt ,
14
- public string $ pathname ,
15
- public string $ contentType ,
16
- public string $ contentDisposition ,
17
- public string $ cacheControl ,
10
+ public readonly string $ url ,
11
+ public readonly string $ downloadUrl ,
12
+ public readonly int $ size ,
13
+ public readonly DateTime $ uploadedAt ,
14
+ public readonly string $ pathname ,
15
+ public readonly string $ contentType ,
16
+ public readonly string $ contentDisposition ,
17
+ public readonly string $ cacheControl ,
18
18
) {
19
19
}
20
20
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace VercelBlobPhp ;
4
4
5
- readonly class PutBlobResult
5
+ class PutBlobResult
6
6
{
7
7
public function __construct (
8
- public string $ url ,
9
- public string $ downloadUrl ,
10
- public string $ pathname ,
11
- public ?string $ contentType ,
12
- public string $ contentDisposition ,
8
+ public readonly string $ url ,
9
+ public readonly string $ downloadUrl ,
10
+ public readonly string $ pathname ,
11
+ public readonly ?string $ contentType ,
12
+ public readonly string $ contentDisposition ,
13
13
) {
14
14
}
15
15
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"functions" : {
3
3
"api/*.php" : {
4
- "runtime" : " vercel-php@0.7.0 "
4
+ "runtime" : " vercel-php@0.5.4 "
5
5
}
6
6
},
7
7
"routes" : [
You can’t perform that action at this time.
0 commit comments