PHPackages                             epustobaev/signed-auth-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. epustobaev/signed-auth-bundle

ActiveLibrary[HTTP &amp; Networking](/categories/http)

epustobaev/signed-auth-bundle
=============================

Signed auth bundle

1.0.1(10y ago)019MITPHPPHP &gt;=5.5.0

Since Aug 14Pushed 9y ago1 watchersCompare

[ Source](https://github.com/epustobaev/signed-auth-bundle)[ Packagist](https://packagist.org/packages/epustobaev/signed-auth-bundle)[ Docs](https://github.com/epustobaev)[ RSS](/packages/epustobaev-signed-auth-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

SignedAuthBundle
================

[](#signedauthbundle)

[![SensioLabsInsight](https://camo.githubusercontent.com/73ff7b23d32e60421fc5ae4e50f0abe751683a0a21c0d0f60763c83fe2ef7ba8/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62633164333239662d346463662d343336622d386339352d3939343736386466366237622f6269672e706e67)](https://insight.sensiolabs.com/projects/bc1d329f-4dcf-436b-8c95-994768df6b7b)

About
-----

[](#about)

The SignedAuthBundle allows you to use token with hashed request parameters and secret key for authentication in your Symfony 2 project.

Features
--------

[](#features)

- Token can be provided with header or GET|POST parameter
- Configurable hash params: secret key getter, hash string concatenation delimiter, token delimiter, token key name
- Ability to sign params from request(uri, host, etc), headers and query(POST and GET)

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

[](#installation)

Require the `epustobaev/signed-auth-bundle` package in your composer.json and update your dependencies.

```
$ composer require epustobaev/signed-auth-bundle

```

Add the SignedAuthBundle to your application's kernel:

```
public function registerBundles()
{
    $bundles = array(
        ...
        new Dendy\SignedAuthBundle\DendySignedAuthBundle(),
        ...
    );
    ...
}

```

Configuration
-------------

[](#configuration)

Example uses orm user provider, token in request header "x-auth", sign params from headers, query and request, hash algorithm md5 and default delimiters. Example token value: `username:ec1cef72d94b43cc96fc8a866f6e19d3`.

```
security:
    providers:
        some_provider:
            entity:
                class: Namespace\Bundle\SomeBundle\Entity\SomeUser
                property: name
                manager_name: default
    firewalls:
        ## some other
        signed_secured:
            pattern:   ^/api/
            stateless: true
            provider: some_provider
            signed:
                auth_type: header
                request_key: x-auth
                token_delimiter: ':'
                data_delimiter: '|'
                hash_alg: 'md5'
                secret_getter: 'getAuthSecret'
                signed_params:
                    headers: ['Host', 'User-Agent']
                    query: ['username']
                    request: ['requestUri']
```

`auth_type` - default value is 'request' - get token value from GET or POST, in opposite 'headers' means that the token is provided in request headers.

`request_key` - default value is 'sign', otherwise can be any string value.

`token_delimiter` - default value is ':', otherwise can be any string value.

`data_delimiter` - default value is ':', otherwise can be any string value.

`hash_alg` - default value is 'md5', see accepted values

`secret_getter` - method of user object to get secret key.

`signed_params` - signed values configuration, getting data from Symfony\\Component\\HttpFoundation\\Request instance.

`signed_params[headers]` - array of request headers to sign(`$request->headers->get('Host')`).

`signed_params[query]` - array of request query params(`$request->get('Host')`)

`signed_params[request]` - array of request query params(`$request->getRequestUri()`)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

2

Last Release

3930d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4d599198e49d60d641a95bfdf2e1a3e295cd39e4b6e675634db33f3c5c787f4f?d=identicon)[epustobaev](/maintainers/epustobaev)

---

Top Contributors

[![epustobaev](https://avatars.githubusercontent.com/u/7591696?v=4)](https://github.com/epustobaev "epustobaev (15 commits)")

---

Tags

apirestAuthenticationSymfony2signhash

### Embed Badge

![Health badge](/badges/epustobaev-signed-auth-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/epustobaev-signed-auth-bundle/health.svg)](https://phpackages.com/packages/epustobaev-signed-auth-bundle)
```

###  Alternatives

[zoonman/linkedin-api-php-client

LinkedIn API PHP SDK with OAuth 2.0 &amp; CSRF support. Can be used for social sign in or sharing on LinkedIn. Examples. Documentation.

127704.0k](/packages/zoonman-linkedin-api-php-client)[jeremykendall/query-auth

Signature generation and validation for REST API query authentication

142120.8k1](/packages/jeremykendall-query-auth)[aphiria/aphiria

The Aphiria framework

1427.7k2](/packages/aphiria-aphiria)

PHPackages © 2026

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