-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cant install with laravel 8 #6
Comments
Ah okay, thanks for the heads up! As I'm doing my first project with Laravel 8 now I'll have to deal with it shortly too. |
The dependency isn't looking overly active: https://github.com/cwhite92/b2-sdk-php This one https://github.com/zaxbux/b2-sdk-php might be worthy to look into - he might be more interested in adding guzzle 7 support |
Tip: From Laravel 8 if you use the built in http client then the Guzzle dependency can be dropped? Ah but I see that it is a dependency of a dependency. This package has already Guzzle7 support: https://github.com/obregonco/backblaze-b2 maybe a good choice also. |
Yeah, guzzle is a dependency of a dependency. I got to check if https://github.com/obregonco/backblaze-b2 works - looks promising |
Hmmmm, though I'd share this with you. Just tried something and it works like a charm. Since Backblaze says it has a S3 compatible storage API, I tried the following on the latest Laravel 8 with php8:
AWS_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxxx Note that I've added the "AWS_ENDPOINT" variable to the existing .env settings for AWS. All of the above mentioned information can be retrieved when creating a bucket and API key on backblaze's site.
And BOOM it works! Just like as if you are using S3. I just figured if they say it is an S3 compatible API, then S3 adaptors should work. Might not be optimal for all use-cases but for working with Laravel's storage and disks it seems to be honky dorky! |
Not working for me, always got ACL error so i compile all abandoned repos in single one, and fix some files for guzzle 7 |
there is some problems with this repo too |
That's a good point - at the end B2 should be compatible. I'll try this out for my project and let you know if it works for me. |
s3 compatible api works only with master keys, as far as i know |
Yeah, same for the current package - the application keys never worked. |
u can use my repo if u want. i made application keys works here https://github.com/soncemvo/laravel-b2 |
to achieve what exactly? I was thinking of going with the S3-compatible approach by @slakbal |
@soncemvo @spekulatius I see I forgot to include the version on my composer entry. Updated my previous comment to include the following, but also included the full composer dependencies. As mentioned latest Laravel 8 and php8. {
"php": "^7.3|^8.0",
"fideloper/proxy": "^4.4",
"fruitcake/laravel-cors": "^2.0",
"guzzlehttp/guzzle": "^7.0.1",
"laravel/framework": "^8.12",
"laravel/tinker": "^2.5",
"league/flysystem-aws-s3-v3": "~1.0"
} See docs: https://laravel.com/docs/8.x/filesystem#composer-packages
https://www.backblaze.com/b2/docs/s3_compatible_api.html Hope it's helps. |
Awesome, thank you @slakbal! I'll try it out over the weekend and let you know if I got it working |
@slakbal still no success with s3 and this is full public bucket with all rights |
@soncemvo don't know what to tell you. I don't have access to your code so cant help you. I'll see if I can upload for you a quick project when I get some time. But let's also hear from @spekulatius if he was able to try it out also. |
Hey @slakbal I've tested the s3-compatiblity and it works like a charm. Much easier - thanks for hinting to this. I think it makes more sense to suggest this approach instead of maintaining another package. Cheers, |
Hey @slakbal did you notice any issues while cleaning up backups? I seem to have the old backups remaining and an empty file being added? Cheers, |
I also met the same problem and found a solution. 's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
'options' => [
'ACL' => '',
]
], |
Hello @hui-ho, I've tried the settings but my old backups still won't get cleaned up. Any idea why? Cheers, |
Laravel 8 now require guzzle 7.0.1 so composer fails:
its not directly your problem, just letting you know
The text was updated successfully, but these errors were encountered: