Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="LessLibs PHPCS">
<config name="installed_paths" value="../../slevomat/coding-standard"/>
<file>../../../src</file>
<file>../../../test</file>
<!-- Include the whole PEAR standard -->
<rule ref="PEAR">
<exclude name="PEAR.Commenting.FileComment.Missing"/>
@mkroeders
mkroeders / gist:aa746a9bff9dc4fcdab3
Created February 25, 2015 12:11
ZF2 non required input filter
<?php
namespace Application\InputFilter;
use Zend\InputFilter as ZFI;
class InputFilter extends ZFI\InputFilter
{
private $required = true;
/**
@mkroeders
mkroeders / IsAllowed.php
Last active August 29, 2015 13:57
IsAllowed view helper for Zend Framework 2
<?php
namespace View\Helper;
use Zend\View\Helper\AbstractHelper;
use Zend\Permissions\Acl\AclInterface;
use Zend\Permissions\Acl\Role\RoleInterface;
/**
* Class IsAllowed
* @package View\Helper
@mkroeders
mkroeders / PostCodeApi.php
Last active December 17, 2015 08:49
Simple class to communicate with postcodeapi.nu
<?php
/**
* Class PostcodeApi
*
* Simple PHP api class for http://www.postcodeapi.nu/
*/
class PostCodeApi
{
/** @var string */
protected $key;