Serveurs: . Linux . Putty . Apache . Nginx . Php . Mysql . Varnish . Vagrant puppet chef . Wamp
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 | |
working_directory='./' | |
bootstrap_name='raphhh/php-lib-bootstrap' | |
bootstrap_version='@stable' | |
echo 'PHP Lib Bootstrap Generator' | |
echo ''; | |
echo 'Enter your project name (<vendor>/<name>):' |
#Chess coding challenge
Le challenge réside dans la conceptualisation des algorithmes au niveau de l'architecture d'un code. L'idée n'est donc pas d'atteindre une performence dans le code, mais une écriture lisible, réutilisable, et emprunte de bonnes pratiques type SOLID.
Le code doit être testé et pushé sur un repo git public.
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 web app | |
## Main resources | |
website | |
code base repository | |
documentation | |
bug tracking | |
ci servers | |
monitoring | |
analytics |
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 | |
# running the tests | |
./bin/test | |
echo "" | |
STATUS_CODE=$? | |
exit $STATUS_CODE |
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 TRex\Reflection\CallableReflection; | |
//examples | |
$closure = function(){}; | |
$reflect = new CallableReflection($closure); | |
var_dump($reflect->getType()===CallableReflection::CLOSURE_TYPE); | |
var_dump($reflect->getFunctionName()===''); | |
var_dump($reflect->getClosure()===$closure); | |
var_dump($reflect->getClassName()===''); |
#PHP getter method
/**
* Getter of $${PARAM_NAME}
*
* @return ${TYPE_HINT}
*/
#if (${TYPE_HINT} == "bool" || ${TYPE_HINT} == "boolean")
public ${STATIC} function ${PARAM_NAME}()
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 xphp='php -dxdebug.remote_enable=1 -dxdebug.remote_autostart=1' | |
alias dumpath='echo $PATH | tr ":" "\n"' | |
alias adduserpath='echo 'PATH="$1:$PATH"' >> ~/.profile' |
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
[user] | |
name = Raphaël Lefebvre | |
email = raphael@raphaellefebvre.be | |
[core] | |
excludesfile = c:/Users/Raphaël/.gitignore_global | |
autocrlf = input | |
[ui] | |
color = auto | |
[grep] | |
extendedRegexp = true |
OlderNewer