PHPackages                             david-crty/upload-to-s3-webhook - 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. david-crty/upload-to-s3-webhook

ActiveCli

david-crty/upload-to-s3-webhook
===============================

Allow you to upload folders files to s3 and trigger a webkook containing all upload infos

0.5(5y ago)111MITPHPPHP ^7.3

Since Sep 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/David-Crty/upload-to-s3-webhook)[ Packagist](https://packagist.org/packages/david-crty/upload-to-s3-webhook)[ RSS](/packages/david-crty-upload-to-s3-webhook/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (12)Versions (6)Used By (0)

Upload to S3 webhook [![PHP Test](https://github.com/David-Crty/upload-to-s3-webhook/workflows/PHP%20Test/badge.svg)](https://github.com/David-Crty/upload-to-s3-webhook/workflows/PHP%20Test/badge.svg)
========================================================================================================================================================================================================

[](#upload-to-s3-webhook-)

Goal
----

[](#goal)

Allow you to upload folders &amp; files to s3 and trigger a webkook containing all upload infos

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

[](#installation)

#### Docker run

[](#docker-run)

```
docker run --rm  \
    -v ~/my-local-folder:/upload \
    -e AWS_REGION=eu-central-1 \
    -e AWS_ID=XXX \
    -e AWS_PRIVATE=XXX \
    -e AWS_BUCKET=XXX \
    -e WEBHOOK_ENDPOINT=https://my-host.com/webhook \
    davidcrty/uptoload-to-s3-webhook:latest upload-to-s3-webhook upload /upload
```

---

#### Cloning repo &amp; build phar

[](#cloning-repo--build-phar)

```
git clone https://github.com/David-Crty/upload-to-s3-webhook
composer install
```

Create a .env.local to overright the env values :

```
AWS_REGION=eu-central-1
AWS_ID=XXX
AWS_PRIVATE=XXX
AWS_BUCKET=XXX
WEBHOOK_ENDPOINT=https://my-host.com/webhook

```

##### Build phar (optional, you can just use ./bin/main upload)

[](#build-phar-optional-you-can-just-use-binmain-upload)

(maybe you need to update the php.ini of php cli (eg: /etc/php/7.4/cli/php.ini) to allow phar to edit files)

```
[Phar]
; http://php.net/phar.readonly
phar.readonly = Off

```

```
composer run compile
```

Use
---

[](#use)

Execute script like this

```
./upload-to-s3-webhook.phar upload ./composer.json
```

Will upload file to s3 and call webhook with POST application/json

```
{
  "name": "composer.lock",
  "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/composer.lock",
  "size": 147130,
  "mineType": "text/plain",
  "s3Key": "composer-lock/composer-lock_5f776fa525f36"
}
```

---

```
./upload-to-s3-webhook.phar upload ./src
```

Will upload src folder to s3 and call webhook with POST application/json

```
{
  "name": "src",
  "files": [
    {
      "name": "ScanPath.php",
      "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/ScanPath.php",
      "size": 1813,
      "mineType": "text/x-php",
      "s3Key": "src/scanpath-php_5f776dc1b0fd3"
    },
    {
      "name": "Serializer.php",
      "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/Serializer.php",
      "size": 965,
      "mineType": "text/x-php",
      "s3Key": "src/serializer-php_5f776dc2c33be"
    },
    {
      "name": "UploadToS3.php",
      "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/UploadToS3.php",
      "size": 1395,
      "mineType": "text/x-php",
      "s3Key": "src/uploadtos3-php_5f776dc3aa07e"
    },
    {
      "name": "WebHook.php",
      "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/WebHook.php",
      "size": 855,
      "mineType": "text/x-php",
      "s3Key": "src/webhook-php_5f776dc5c8472"
    },
    {
      "name": "bootstrap.php",
      "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/bootstrap.php",
      "size": 1203,
      "mineType": "text/x-php",
      "s3Key": "src/bootstrap-php_5f776dc6cd606"
    }
  ],
  "folders": [
    {
      "name": "Command",
      "files": [
        {
          "name": "UploadCommand.php",
          "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/Command/UploadCommand.php",
          "size": 1903,
          "mineType": "text/x-php",
          "s3Key": "src/uploadcommand-php_5f776dc7c3244"
        }
      ],
      "folders": []
    },
    {
      "name": "Helper",
      "files": [
        {
          "name": "Env.php",
          "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/Helper/Env.php",
          "size": 199,
          "mineType": "text/x-php",
          "s3Key": "src/env-php_5f776dc8b6bb1"
        }
      ],
      "folders": []
    },
    {
      "name": "Model",
      "files": [
        {
          "name": "File.php",
          "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/Model/File.php",
          "size": 2907,
          "mineType": "text/x-php",
          "s3Key": "src/file-php_5f776dc9c1b09"
        },
        {
          "name": "Folder.php",
          "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/Model/Folder.php",
          "size": 3651,
          "mineType": "text/x-php",
          "s3Key": "src/folder-php_5f776dcaafb78"
        },
        {
          "name": "ResourceInterface.php",
          "realPath": "/home/david/Sites/op-serv/upload-to-s3-webhook/src/Model/ResourceInterface.php",
          "size": 99,
          "mineType": "text/x-php",
          "s3Key": "src/resourceinterface-ph_5f776dcc182cc"
        }
      ],
      "folders": []
    }
  ]
}
```

Test
----

[](#test)

You can test it with phpunit

```
phpunit
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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 ~3 days

Total

5

Last Release

2039d ago

PHP version history (2 changes)0.1PHP ^7.4

0.2PHP ^7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3600892?v=4)[David Courtey](/maintainers/David-Crty)[@David-Crty](https://github.com/David-Crty)

---

Top Contributors

[![David-Crty](https://avatars.githubusercontent.com/u/3600892?v=4)](https://github.com/David-Crty "David-Crty (21 commits)")

---

Tags

folders3s3-webhookuploadwebhook

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/david-crty-upload-to-s3-webhook/health.svg)

```
[![Health](https://phpackages.com/badges/david-crty-upload-to-s3-webhook/health.svg)](https://phpackages.com/packages/david-crty-upload-to-s3-webhook)
```

###  Alternatives

[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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