Skip to content

Instantly share code, notes, and snippets.

View mhujer's full-sized avatar
🏠
Working remotely

Martin Hujer mhujer

🏠
Working remotely
View GitHub Profile
@mhujer
mhujer / benchmark.php
Created April 1, 2017 11:12
ramsey/uuid serialization/deserialization benchmark
<?php
declare(strict_types = 1);
use Ramsey\Uuid\Uuid;
require_once __DIR__ . '/../vendor/autoload.php';
$data = require __DIR__ . '/dataset.php';
@mhujer
mhujer / boxstarter.ps1
Created September 14, 2017 06:48 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# start http://boxstarter.org/package/nr/url?<URL-TO-RAW-GIST>
#
# Learn more: http://boxstarter.org/Learn/WebLauncher
#---- TEMPORARY ---
@mhujer
mhujer / composer.json.patch
Created February 22, 2018 11:18
Enable PHPStan in PHPUnit
diff --git a/composer.json b/composer.json
index d1d0595e5..6b04dc677 100644
--- a/composer.json
+++ b/composer.json
@@ -47,7 +47,8 @@
"sebastian/version": "^2.0.1"
},
"require-dev": {
- "ext-PDO": "*"
+ "ext-PDO": "*",
@mhujer
mhujer / phpcs-shopio.xml
Created June 1, 2014 19:41
Shopio.cz PHP_CodeSniffer ruleset
<?xml version="1.0"?>
<ruleset name="Shopio Custom Standard">
<rule ref="Zend" />
<!-- Zend includes those
<rule ref="Generic.Functions.FunctionCallArgumentSpacing"/>
<rule ref="Generic.Functions.OpeningFunctionBraceBsdAllman"/>
<rule ref="Generic.PHP.DisallowShortOpenTag"/>
<rule ref="Generic.WhiteSpace.DisallowTabIndent"/>
<rule ref="PEAR.Classes.ClassDeclaration"/>