PHPackages                             turanct/shack - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. turanct/shack

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

turanct/shack
=============

Stack PHP git sha middleware

v1.1.1(11y ago)012MITPHP

Since Dec 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/turanct/shack)[ Packagist](https://packagist.org/packages/turanct/shack)[ Docs](http://github.com/turanct/shack)[ RSS](/packages/turanct-shack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

Turanct/Shack
=============

[](#turanctshack)

A [Stack](http://stackphp.com) middleware that will add a unique identifier (`sha`) to the application. It will set a custom header (`X-Shack-Sha`) containing the sha.

```
$ curl -I http://shack.dev
HTTP/1.1 200 OK
Date: Sat, 06 Dec 2014 17:29:49 GMT
Server: Apache/2.2.22 (Ubuntu)
X-Powered-By: PHP/5.3.10-1ubuntu3.15
Cache-Control: no-cache
X-Shack-Sha: 7c2796aa85d735874ec95c7b4e18a2e0f15d1456
Vary: Accept-Encoding
Content-Type: text/html; charset=UTF-8
```

Example
-------

[](#example)

```
