Download the PHP package nandung/s3-manager without Composer

On this page you can find all versions of the php package nandung/s3-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package s3-manager

Laravel S3 Manager

Latest Version on Packagist Total Downloads License

A powerful Laravel package for managing multiple S3-compatible storage buckets with quota management, URL embedding, file synchronization, and comprehensive file tracking.

Features

Requirements

Installation

Install the package via Composer:

Publish the configuration file:

Run the migrations:

Or publish migrations first if you want to customize them:

Configuration

After publishing, configure your buckets in config/s3-manager.php:

Environment Variables

Add these to your .env file:

Usage

Basic Usage with Facade

Fluent Bucket API

URL Generation

Quota Management

Quota exceptions are thrown automatically when limits are exceeded:

Synchronization

Sync remote bucket contents with your local database:

Dependency Injection

Multiple Bucket Configuration

AWS S3

Cloudflare R2

MinIO (Self-hosted)

DigitalOcean Spaces

Embed Proxy

The embed proxy allows you to serve files through your application, useful for:

Configuration

Usage

The embed route automatically handles:

Database Schema

The package creates two tables:

s3_manager_files

Tracks all files across buckets:

Column Type Description
id bigint Primary key
bucket_id string(64) Bucket identifier
path string(1024) File path in bucket
size bigint File size in bytes
mime_type string(128) MIME type
etag string(64) S3 ETag
last_modified timestamp Last modification time
metadata json Custom metadata
created_at timestamp Record creation time
updated_at timestamp Record update time

s3_manager_bucket_usage

Tracks usage statistics per bucket:

Column Type Description
id bigint Primary key
bucket_id string(64) Bucket identifier
total_size bigint Total storage used
file_count bigint Number of files
last_synced_at timestamp Last sync time
created_at timestamp Record creation time
updated_at timestamp Record update time

Exception Handling

The package provides specific exceptions for different error scenarios:

API Reference

S3Manager Methods

Method Description
bucket(string $bucketId) Get fluent bucket interface
upload(string $bucketId, string $path, mixed $contents, array $options = []) Upload a file
download(string $bucketId, string $path) Download a file
delete(string $bucketId, string $path) Delete a file
exists(string $bucketId, string $path) Check if file exists
list(string $bucketId, string $prefix = '', bool $recursive = false) List files
publicUrl(string $bucketId, string $path) Generate public URL
presignedUrl(string $bucketId, string $path, ?int $expiration = null, string $method = 'GET') Generate presigned URL
embedUrl(string $bucketId, string $path) Generate embed proxy URL
sync(string $bucketId) Sync bucket with database
getUsage(?string $bucketId = null) Get usage statistics

FileRecord Model

UsageInfo Object

SyncResult Object

Testing

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

If you discover a security vulnerability, please send an email to [email protected]. All security vulnerabilities will be promptly addressed.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of s3-manager with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
laravel/framework Version ^10.0|^11.0|^12.0
aws/aws-sdk-php Version ^3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nandung/s3-manager contains the following files

Loading the files please wait ...