- 9h00
- Keynote d'ouverture
- 9h30
- A State of Mind. Sebastian Bergmann
- Slides : http://thephp.cc/dates/2014/forum-php/a-state-of-mind
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# some configurations values | |
host="foobar-web00" # the name of the host in my ssh config file | |
project_path="/var/www/foobar" | |
user="web" | |
key_filename="/path/to/.ssh/web-deploy-key" | |
dry_run="--dry-run" | |
assets_differ="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ack='ack-grep --type-set twig=.twig' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# For each sub-package, run the Satis build command. | |
php bin/satis build repositories-mirrors.json ./web/mirrors | |
php bin/satis build repositories-pear.json ./web/pear | |
php bin/satis build repositoriesp-rojects.json ./web/projects | |
# Merge all the package files. | |
php web/packages.php > web/packages.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
protected function execute(InputInterface $input, OutputInterface $output) | |
{ | |
$progress = $this->getHelperSet()->get('progress'); | |
$ctx = stream_context_create(array(), array('notification' => function ($notification_code, $severity, $message, $message_code, $bytes_transferred, $bytes_max) use ($output, $progress) { | |
switch ($notification_code) { | |
case STREAM_NOTIFY_FILE_SIZE_IS: | |
$progress->start($output, $bytes_max); | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Linkofy\CommonBundle\Menu; | |
use Knp\Menu\FactoryInterface; | |
use Symfony\Component\DependencyInjection\ContainerAware; | |
class Builder extends ContainerAware | |
{ | |
public function mainMenu(FactoryInterface $factory, array $options) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Use the AWS security token service's GetCallerIdentity command | |
// to produce a request that allows Vault to identify the instance | |
// that wants to authenticate. | |
// | |
// @see https://gist.github.com/joelthompson/378cbe449d541debf771f5a6a171c5ed | |
$sts = new \Aws\Sts\StsClient([ | |
'region' => 'us-east-1', |
This page will help you run continuous integration for PHP CodeSniffer and PHP-CS-Fixer using GitHub Actions.
To setup GitHub Actions in your repository, create a .github/workflows/ci.yml
file in your repository and commit it.
The content of that file depends on the tool you want to run, please read the examples below.
Note: the examples below are provided to get you started easily, it is possible you may need to adjust them to fit your project.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Tests\Integration; | |
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\HttpKernel\Controller\ControllerResolverInterface; | |
use Symfony\Component\HttpKernel\HttpKernelInterface; | |
use Symfony\Component\Routing\RouterInterface; |