Download the PHP package turanct/shack without Composer
On this page you can find all versions of the php package turanct/shack. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download turanct/shack
More information about turanct/shack
Files in turanct/shack
Download turanct/shack
More information about turanct/shack
Files in turanct/shack
Vendor turanct
Package shack
Short Description Stack PHP git sha middleware
License MIT
Homepage http://github.com/turanct/shack
Package shack
Short Description Stack PHP git sha middleware
License MIT
Homepage http://github.com/turanct/shack
Please rate this library. Is it a good library?
Informations about the package shack
Turanct/Shack
A Stack middleware that will add a unique identifier (sha
) to the application. It will set a custom header (X-Shack-Sha
) containing the sha.
Example
Usage
Just pass in the right Sha type as argument to the Turanct\Shack
constructor (Git, RevisionFile, String), and Shack will take care of the rest.
Options:
Turanct\Shack\Git
will run a git command on your server, to retreive the current HEAD's shaTuranct\Shack\RevisionFile
will use the contents of a given file as sha. This is particulary handy when using Capistrano, as there's a Capistrano task to create these files. You can just pass the revision file path as a constructor parameter.Turanct\Shack\String
takes any string and uses that as the sha. This might be handy to use when you want to set the sha yourself, e.g. usingENV
variables.
If you want to disable the html sha stamp on your html pages, just pass false
to the Turanct\Shack
constructor.
Inspiration
Ported from the ruby rack middleware by Piet pjaspers/shack
All versions of shack with dependencies
PHP Build Version
Package Version
The package turanct/shack contains the following files
Loading the files please wait ....