Skip to content

Instantly share code, notes, and snippets.

@shevron
shevron / ZfClassmapTask.php
Created January 10, 2012 18:31
Zend Framework 2.0 style autoloader classmap generator task for Phing
<?php
/**
* Phing task to generate a Zend Framework style autoloader classmap file
*
* This task requires ZF 2.x to be in your include_path. You can run phing like
* so to enforce this:
*
* $ export PHP_COMMAND="php -d include_path=.:<path to zf library>:<path to pear>"
* $ phing ...
@shevron
shevron / pluginmap_generator.php
Created September 26, 2011 14:28
A Plugin / Helper map generator for ZF 2.0 PluginClassLoader
<?php
/**
* Zend Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
@shevron
shevron / zs_request_sign.php
Created June 30, 2011 12:21
Creating a Zend Server Web API request signature using PHP
<?php
/**
* Calculate Zend Server Web API request signature
*
* @param string $host Exact value of the 'Host:' HTTP header
* @param string $path Request URI
* @param integer $timestamp Timestamp used for the 'Date:' HTTP header
* @param string $userAgent Exact value of the 'User-Agent:' HTTP header
* @param string $apiKey Zend Server API key