Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/bin/bash | |
| SYMFREPO="git://symfony-git.git.sourceforge.net/gitroot/symfony-git/symfony-git" | |
| DBUSER="root" | |
| DBPASS="" | |
| VENDOR_DIR="lib/vendor/symfony" | |
| if [ -z "$DBPASS" ]; then | |
| echo edit setupsymfony.sh to add your mysql password on line 4: DBPASS=\"password\" | |
| exit |
| <?php | |
| function processFile($file) | |
| { | |
| $file = file_get_contents($file); | |
| $book = array(); | |
| list($junk, $cont) = explode('<hr>', $file, 2); |
| <?php | |
| class DescribeIndex extends View | |
| { | |
| function itRendersTheSelectedVideo() | |
| { | |
| $video = \Mockery::mock( | |
| 'Application_Model_Video', array('getName' => 'Revolution OS')); | |
| $output = $this->render('MyBundle:Video:detail.html.twig', array( |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| <?php | |
| Trait MethodDelegator | |
| { | |
| private $roles = array(); | |
| private $method_map = array(); | |
| public function delegate($class) | |
| { |
Videos from the conference will be available some day via the SensioLabs YouTube page: http://www.youtube.com/user/SensioLabs
Lightning Talk - Cryptography for Lexical Analysis of OAuth 3.0 Protocols with UML Diagrams and Agile Design Patterns in the Silex Micro-framework
Jeremy Mikola
Video: http://www.youtube.com/watch?v=AiiNB0Y8SVI
Getting Good with the AWS SDK for PHP
Jeremy Lindblom
| #!/bin/bash | |
| # Put this file at: .git/hooks/post-checkout | |
| # and make it executable | |
| # You can install it system wide too, see http://stackoverflow.com/a/2293578/685587 | |
| PREV_COMMIT=$1 | |
| POST_COMMIT=$2 | |
| NOCOLOR='\e[0m' |
| <?php | |
| namespace Rj\CoreBundle\OAuth; | |
| /** | |
| * Copyright (c) 2010 Arnaud Le Blanc, all rights reserved | |
| */ | |
| /** | |
| * Facebook OAuth 2.0 client | |
| */ |
The PHP language owner is responsible for the success of Heroku developers building in PHP. They are part of the broader “languages team”, a group of developers with similar language-specific responsibilities and shared infrastructure.
A language owner will be responsible for varying degrees of
| <?php | |
| require_once __DIR__.'/autoload.php.dist'; | |
| use Symfony\Component\ExpressionLanguage\ExpressionLanguage; | |
| use Symfony\Component\Routing\Matcher\UrlMatcher; | |
| use Symfony\Component\Routing\Matcher\RequestMatcherInterface; | |
| use Symfony\Component\Routing\RequestContext; | |
| use Symfony\Component\Routing\RouteCollection; | |
| use Symfony\Component\Routing\Route; |