Twig Snippets

Twig Snippets

Twig 1.8 Snippets This is a collection of my most used Twig snippets, developed with Twig 1.8. View Twig Docs  Simple Filters 1 2 3 4 5 6 7 // Urlify simple filter for Twig $filter = new Twig_SimpleFilter('urlify', function ($string) { return...
PHP Snippets

PHP Snippets

 Useful Stuff A collection of snippets used for editing arrays. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 // Lock Page/Admin Access to Specific list of IPs   // static IP list $whitelistedIps = array( '1.1.1.1.', '2.2.2.2',...
Laravel 4.x Common Console Commands

Laravel 4.x Common Console Commands

Creating A Package 1 php artisan workbench vendor/package --resources php artisan workbench vendor/package --resources Example: 1 php artisan workbench pesky/journey --resources php artisan workbench pesky/journey --resources PHP Unit 1 php phpunit.pharphp...