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
#!/usr/bin/env bash | |
composer validate | |
### Previous version | |
# php -r "\$lock = json_decode(file_get_contents('composer.lock'))->hash; \$json = md5(file_get_contents('composer.json')); if (\$lock !== \$json) { echo \"Lock file out of date\\n\"; exit(1); } echo \"Lock file up to date\\n\"; exit(0);" | |
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
cache: | |
directories: | |
- $HOME/.composer/cache/ |
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
package main | |
import ( | |
"net/http" | |
"fmt" | |
"encoding/json" | |
) | |
type Message struct { | |
Name string |
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 | |
set -euo pipefail | |
if [ ! -d "$HOME/.composer" ]; then | |
mkdir "$HOME/.composer" | |
touch "$HOME/.composer/.lastpull" | |
fi | |
if test find "$HOME/.composer/" -name ".lastpull" -and -mtime +7 > /dev/null 2>&1 ; then |
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
FROM php:5-cli | |
RUN apt-get update \ | |
&& apt-get install -y \ | |
git software-properties-common python-software-properties libicu-dev zlib1g-dev curl subversion bash \ | |
&& rm -rf /var/lib/apt/lists/* \ | |
&& docker-php-ext-configure zip \ | |
&& docker-php-ext-install zip \ | |
&& docker-php-ext-configure intl \ | |
&& docker-php-ext-install intl \ |
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 | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules(array( | |
'@Symfony' => true, | |
'@Symfony:risky' => true, | |
'array_syntax' => array('syntax' => 'short'), | |
'dir_constant' => true, | |
'heredoc_to_nowdoc' => true, |
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 | |
class MyExampleService() | |
{ | |
private $entityManager; | |
public function __construct(EntityManager $entityManager, OtherDependencies $dependencyOne) | |
{ | |
$this->entityManager = $entityManager; | |
} |
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 | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules([ | |
'@Symfony' => true, | |
'@Symfony:risky' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'dir_constant' => true, | |
'heredoc_to_nowdoc' => true, |
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 | |
return PhpCsFixer\Config::create() | |
->setRiskyAllowed(true) | |
->setRules( | |
[ | |
'@Symfony' => true, | |
'@Symfony:risky' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'declare_strict_types' => true, |
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
#/usr/bin/env bash | |
# ... Other Stuff Here ... | |
############################################################################### | |
# MOTD # | |
############################################################################### | |
(cd "${CODE_PATH}" && git standup -g) | |
echo |