PHPackages                             nassiry/filesize-handler-s3-extension - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. nassiry/filesize-handler-s3-extension

ActiveFilesize-handler-extension

nassiry/filesize-handler-s3-extension
=====================================

Amazon S3 extension for FileSizeHandler.

1.0.1(1y ago)11MITPHPPHP &gt;=8.0

Since Jan 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/nassiry/filesize-handler-s3-extension)[ Packagist](https://packagist.org/packages/nassiry/filesize-handler-s3-extension)[ RSS](/packages/nassiry-filesize-handler-s3-extension/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

PHP FileSizeHandler - S3 Extension
==================================

[](#php-filesizehandler---s3-extension)

[![Packagist Downloads](https://camo.githubusercontent.com/05cda428db0f2045d92b58bc86930183a80aa6748c871dd345c16e5f935bdba3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6173736972792f66696c6573697a652d68616e646c65722d73332d657874656e73696f6e)](https://camo.githubusercontent.com/05cda428db0f2045d92b58bc86930183a80aa6748c871dd345c16e5f935bdba3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6173736972792f66696c6573697a652d68616e646c65722d73332d657874656e73696f6e)[![Packagist Version](https://camo.githubusercontent.com/ab967375f399b1248f219427b6081ba4544167905ed1616d4c0719e82a015f6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6173736972792f66696c6573697a652d68616e646c65722d73332d657874656e73696f6e)](https://camo.githubusercontent.com/ab967375f399b1248f219427b6081ba4544167905ed1616d4c0719e82a015f6f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6173736972792f66696c6573697a652d68616e646c65722d73332d657874656e73696f6e)[![PHP](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)](https://camo.githubusercontent.com/29e76b25f44fd19ba3a88f85f00b3ac7329ffd604075db0fbbeda87f6c794491/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253545382e302d626c7565)[![License](https://camo.githubusercontent.com/3a29db1cbd787aa378cb9ded6c051c000a9eb81d21873f92ec609b463aa96fa6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6173736972792f66696c6573697a652d68616e646c65722d73332d657874656e73696f6e)](https://camo.githubusercontent.com/3a29db1cbd787aa378cb9ded6c051c000a9eb81d21873f92ec609b463aa96fa6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6173736972792f66696c6573697a652d68616e646c65722d73332d657874656e73696f6e)

The **S3 Extension** for [FileSizeHandler](https://github.com/nassiry/filesize-handler) enables support for retrieving file sizes from Amazon S3.

### Features

[](#features)

- Fetch file sizes from Amazon S3.
- Seamlessly integrates with the main [FileSizeHandler](https://github.com/nassiry/filesize-handler) library.

Installation
------------

[](#installation)

Install the extension via Composer:

```
composer require nassiry/filesize-handler-s3-extension
```

Usage
-----

[](#usage)

```
use Nassiry\FileSizeUtility\FileSizeHandler;
use Nassiry\FileSizeUtility\Extensions\S3Files;
use Aws\S3\S3Client;

$s3Client = new S3Client([
    'region' => 'us-east-1',
    'version' => 'latest',
    'credentials' => [
        'key' => 'AWS_ACCESS_KEY',
        'secret' => 'AWS_SECRET_KEY',
    ],
]);

$handler = FileSizeHandler::create()
    ->from(new S3Files(
        $s3Client,           // AWS S3 Client
        'my-bucket',         // S3 bucket name
        'path/to/file.txt'   // File path in S3 bucket
    ))
    ->format();

echo $handler; // Output: "9.87 MiB"
```

### Contributing

[](#contributing)

Feel free to submit issues or pull requests to improve the package. Contributions are welcome!

### Changelog

[](#changelog)

See [CHANGELOG](CHANGELOG.md) for release details.

### License

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance50

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~102 days

Total

2

Last Release

384d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d313e55474ce48c3b19820c784435215bb56c4497557b603583dcf59ba2270c?d=identicon)[nassiry](/maintainers/nassiry)

---

Top Contributors

[![nassiry](https://avatars.githubusercontent.com/u/105405739?v=4)](https://github.com/nassiry "nassiry (3 commits)")

### Embed Badge

![Health badge](/badges/nassiry-filesize-handler-s3-extension/health.svg)

```
[![Health](https://phpackages.com/badges/nassiry-filesize-handler-s3-extension/health.svg)](https://phpackages.com/packages/nassiry-filesize-handler-s3-extension)
```

###  Alternatives

[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M785](/packages/league-flysystem-aws-s3-v3)[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M74](/packages/aws-aws-sdk-php-laravel)[humanmade/s3-uploads

WordPress plugin to store uploads on S3

2.1k2.4M8](/packages/humanmade-s3-uploads)[bref/laravel-bridge

An advanced Laravel integration for Bref, including Octane support.

3384.1M10](/packages/bref-laravel-bridge)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)[laravel-notification-channels/aws-sns

Amazon Simple Notification Service (AWS SNS) notification channel for Laravel.

541.1M2](/packages/laravel-notification-channels-aws-sns)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
