Download the PHP package nks-hub/nette-cloudflare-r2 without Composer
On this page you can find all versions of the php package nks-hub/nette-cloudflare-r2. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download nks-hub/nette-cloudflare-r2
More information about nks-hub/nette-cloudflare-r2
Files in nks-hub/nette-cloudflare-r2
Download nks-hub/nette-cloudflare-r2
More information about nks-hub/nette-cloudflare-r2
Files in nks-hub/nette-cloudflare-r2
Vendor nks-hub
Package nette-cloudflare-r2
Short Description Cloudflare R2 storage integration for Nette Framework with full S3-compatible API support
License MIT
Homepage https://github.com/nks-hub/nette-cloudflare-r2
Package nette-cloudflare-r2
Short Description Cloudflare R2 storage integration for Nette Framework with full S3-compatible API support
License MIT
Homepage https://github.com/nks-hub/nette-cloudflare-r2
Please rate this library. Is it a good library?
Informations about the package nette-cloudflare-r2
Nette Cloudflare R2
Cloudflare R2 storage integration for Nette Framework with full S3-compatible API support.
Features
- 🚀 Full S3-compatible API - Upload, download, delete, copy, list objects
- 📦 Multipart uploads - Automatic chunked upload for large files
- 🔗 Presigned URLs - Generate temporary access URLs (up to 7 days)
- 🎯 Nette integration - DI extension, FileUpload support, Tracy panel
- 💾 Storage classes - Standard and Infrequent Access support
- 🔄 Lifecycle rules - Automatic expiration and transitions
- 🌐 Cloudflare API - Custom domains, event notifications, metrics
- 🛡️ Type-safe - Full PHP 7.4+ / 8.x support with strict types
Requirements
- PHP 7.4 or higher
- Nette Framework 3.x
- Cloudflare R2 account with API credentials
Installation
Configuration
Basic Setup
Register the extension in your config.neon:
Full Configuration
Usage
Basic Operations
File Upload Integration
Upload Options
Presigned URLs
Listing Objects
Multiple Buckets
Copy and Metadata
Multipart Upload (Large Files)
Lifecycle Rules
Bucket Operations
Cloudflare API (Extended Features)
Stream Operations
Tracy Debugger Panel
When tracy: true is enabled, you'll see R2 statistics in the Tracy bar:
- Total operations count
- Uploads/downloads/deletes
- Bytes transferred
- Error count
- Configuration details
Storage Classes
| Class | Use Case | Retrieval Fee |
|---|---|---|
STANDARD |
Frequently accessed data | None |
STANDARD_IA |
Infrequently accessed data | Yes |
Error Handling
R2 Pricing Benefits
Cloudflare R2 offers significant cost savings:
| Feature | R2 | AWS S3 |
|---|---|---|
| Storage | $0.015/GB | $0.023/GB |
| Egress | $0 (FREE!) | $0.09/GB |
| Class A ops | $4.50/million | $5.00/million |
| Class B ops | $0.36/million | $0.40/million |
Free tier: 10 GB storage, 1M Class A ops, 10M Class B ops per month.
Testing
Contributing
Contributions are welcome! For major changes, please open an issue first.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: description') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Support
- 📧 Email: [email protected]
- 🐛 Bug reports: GitHub Issues
- 📖 Cloudflare R2: cloudflare.com/products/r2
License
MIT License — see LICENSE for details.
Made with ❤️ by NKS Hub
All versions of nette-cloudflare-r2 with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
nette/di Version ^3.0
nette/schema Version ^1.2
nette/utils Version ^3.2 || ^4.0
nette/http Version ^3.0
aws/aws-sdk-php Version ^3.0 <4.0
nette/di Version ^3.0
nette/schema Version ^1.2
nette/utils Version ^3.2 || ^4.0
nette/http Version ^3.0
aws/aws-sdk-php Version ^3.0 <4.0
The package nks-hub/nette-cloudflare-r2 contains the following files
Loading the files please wait ...