PHPackages                             arthem/request-signer-bundle - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. arthem/request-signer-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

arthem/request-signer-bundle
============================

Symfony Request signer bundle

1.0.4(5y ago)04.4k[2 PRs](https://github.com/4rthem/request-signer-bundle/pulls)MITPHPPHP ^7.2

Since Apr 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/4rthem/request-signer-bundle)[ Packagist](https://packagist.org/packages/arthem/request-signer-bundle)[ Docs](https://github.com/4rthem/request-signer-bundle)[ RSS](/packages/arthem-request-signer-bundle/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (8)Versions (8)Used By (0)

Request signer bundle
=====================

[](#request-signer-bundle)

This bundle helps you to sign requests in order to provide access to protected resources.

[![Build Status](https://camo.githubusercontent.com/48e78b1899132021d64ff8cba7e56e4743b85e0a367669c3619b87f23dcc9108/68747470733a2f2f7472617669732d63692e636f6d2f34727468656d2f726571756573742d7369676e65722d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/4rthem/request-signer-bundle)

Adapters
--------

[](#adapters)

Supported providers:

- AWS S3 (composer req arthem/jwt-request-signer)
- Local with JWT (composer req arthem/jwt-request-signer)

Installation &amp; configuration
--------------------------------

[](#installation--configuration)

```
composer require arthem/request-signer-bundle
```

Configure your signers:

```
# config/packages/arthem_request_signer.yaml
services:
  s3_client:
    class: Aws\S3\S3Client
    arguments:
    -
      region: us-east-2
      version: "2006-03-01"
      credentials:
        key: '%env(AWS_ACCESS_KEY)%'
        secret: '%env(AWS_SECRET_KEY)%'

arthem_request_signer:
  signers:
    my_local_jwt: # your signer name
      jwt: # signer adapter
        ttl: 120 # in seconds
        signing_key: '%env(resolve:MY_SIGNING_KEY)%'
    aws_images: # your signer name
      aws_s3: # signer adapter
        bucket_name: 'my_bucket'
        service_id: 's3_client' # id of your s3 client service
```

```
# .env
MY_SIGNING_KEY=change-me
AWS_ACCESS_KEY=change-me
AWS_SECRET_KEY=change-me
```

Usage
-----

[](#usage)

Sign your asset URLs:

```
