Skip to content

Instantly share code, notes, and snippets.

@yvoyer
yvoyer / cheat-sheet
Last active May 27, 2022 17:21
Cheat sheet
# Delete local branches that are not on remove
# Source: https://stackoverflow.com/questions/13064613/how-to-prune-local-tracking-branches-that-do-not-exist-on-remote-anymore/16906759#16906759
git fetch -p ; git branch -r | awk '{print $1}' | egrep -v -f /dev/fd/0 <(git branch -vv | grep origin) | awk '{print $1}' | xargs git branch -d
@yvoyer
yvoyer / CalculationCommand.php
Last active November 22, 2019 01:45 — forked from webdevilopers/AbstractCreateCalculationHandler.php
Domain Driven Design Command Bus and Handler example in Symfony
<?php
/**
* This class is used as date_class in form component
*/
class CalculationCommand
{
const BASIC_TYPE = 'basic_calculaction_type';
public $subTotal;

Awesome PHP Libraries

A list of amazingly awesome PHP libraries that you should consider using (and some other shiny extras).