Cloudflare r2 php api help

Please I need to be able to save images to my r2 bucket in php and also be able to view these images using php code, I have not been able to find the php api docs for this. Please help
6 Replies
YS
YS15mo ago
hi, i want to know how to connect r2 to my wp website and how to embed videos to it
Cyb3r-Jak3
Cyb3r-Jak315mo ago
aws-sdk-php · Cloudflare R2 docs
You must generate an Access Key before getting started. All examples will utilize access_key_id and access_key_secret variables which represent the …
Cyb3r-Jak3
Cyb3r-Jak315mo ago
Look for Wordpress plugins that support S3 compatible storage and you should be able to use R2 with them. Also for future reference please make your own post
YS
YS15mo ago
i am new here...
digitalpoint
digitalpoint15mo ago
I didn't respond before because I didn't want to be "self-promoy", but... as @Cyb3r-Jok3 mentioned, any S3 compatible system should work. You can also "super easy mode" it with a WordPress plugin I released a few days ago. Makes your WordPress media library automatically use R2 (orange clouds there are in R2). https://wordpress.org/plugins/app-for-cf/
digitalpoint
Plugin Directory
App for Cloudflare®
Utilize Cloudflare for your WordPress site to the maximum extent (caching, settings, rules, analytics, cloud storage, email management, protect admin …
No description
No description
YS
YS15mo ago
Tnx

Did you find this page helpful?