Skip to content

Instantly share code, notes, and snippets.

View yosymfony's full-sized avatar
🎯
Focusing

Yo! Symfony yosymfony

🎯
Focusing
View GitHub Profile
@yosymfony
yosymfony / create_jigsaw_site.rr.yml
Created September 19, 2019 15:29
Create a Jigsaw site
name: "Create a Jigsaw site"
extra:
rr:
packages:
"recipe-runner/io-module": "1.0.x-dev"
"recipe-runner/system-module": "1.0.x-dev"
steps:
- name: "Infrastructure"
actions:
- name: "Name of the site"
@yosymfony
yosymfony / TwigFactory.php
Last active December 22, 2015 18:09
A Twig factory
<?php
require_once '/path/to/lib/Twig/Autoloader.php';
/**
* A factory for create Twig instances
*
* @author Victor Puertas <[email protected]>
*
* Usage:
* <code>
@yosymfony
yosymfony / index.php
Last active December 19, 2015 09:49
Simple skeleton for Silex application
<?php
require_once __dir__.'/vendor/autoload.php';
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
* Simple skeleton for Silex
*
* Run in PHP >=5.4: $ php -S localhost:8080 -t web web/index.php