Skip to content

Instantly share code, notes, and snippets.

View tdutrion's full-sized avatar
👋
Open for projects

Thomas Dutrion tdutrion

👋
Open for projects
View GitHub Profile
@tdutrion
tdutrion / global.php
Last active February 27, 2017 10:27
ZF2 navigation in config folder
<?php
return [
'navigation' => [
'default' => [
[
'label' => 'Home',
'route' => 'home',
'pages' => [
[
@tdutrion
tdutrion / keybase.md
Created April 5, 2016 19:32
keybase.md

Keybase proof

I hereby claim:

  • I am tdutrion on github.
  • I am tdutrion (https://keybase.io/tdutrion) on keybase.
  • I have a public key whose fingerprint is 404A BA60 FC6E 2551 E3DD 3E6B 7D61 F427 D1AE 1AE5

To claim this, I am signing this object:

@tdutrion
tdutrion / Dockerfile
Created May 17, 2016 14:43
Dockerfile PHP7-FPM with extensions (Redis, pdo_mysql, pdo_pgsql, intl, curl, json, opcache and xml) - large image
FROM php:7-fpm
RUN apt-get update && apt-get install -y git libcurl4-gnutls-dev zlib1g-dev libicu-dev g++ libxml2-dev libpq-dev \
&& git clone -b php7 https://github.com/phpredis/phpredis.git /usr/src/php/ext/redis \
&& docker-php-ext-install pdo pdo_mysql pdo_pgsql pgsql intl curl json opcache xml redis \
&& apt-get autoremove && apt-get autoclean \
&& rm -rf /var/lib/apt/lists/*
@tdutrion
tdutrion / notes.md
Last active February 17, 2017 14:16
Introduction to Oriented Object Programming in PHP - Nicolas Eeckeloo

Visibility reminders

Class attributes should be private or protected, as we do not want to expose the object logic but rather behaviours through public method. How the class works inside is not the business of the developer that uses the library, details of the implementation do not matter for the him/her.

class Book
{
 	public $title;
	public $content;
	
@tdutrion
tdutrion / notes.md
Last active May 16, 2018 09:32
ZF3 and Doctrine get started - Florent Blaison

Setup the project

Official tutorial from which this is adapted:

Get the project skeleton

Clone the project from Florent's repository (updated ZF3 quickstart):]

git clone [email protected]:Orkin/tsi-getting-start.git
@tdutrion
tdutrion / notes.md
Last active February 17, 2017 15:30
Git - Nicolas

Reminders versionning ecosystem

Approval %

  • svn
  • bazaar
  • git
  • mercurial
  • ...

Git

@tdutrion
tdutrion / notes.md
Last active February 17, 2017 16:27
Unit testing - Nicolas

I don't have time to write tests because I am too busy

Types of software testing

Some people are confused about what type of tests they are practicing.

Explaination on what the different types of tests cover (acceptance => as a user)

Video of the doors.

@tdutrion
tdutrion / Demo anchor.md
Last active October 16, 2018 10:12
Demo anchor

Link to my title

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sed aliquam felis. Nunc pulvinar massa ac egestas auctor. Ut elit risus, fringilla in ex nec, sodales aliquet massa. Proin ac justo nisi. Maecenas in hendrerit sem, vel interdum nisl. Nunc vitae tristique sem. Vestibulum vel mi congue lectus faucibus finibus. Nunc molestie lectus risus. Fusce sit amet pellentesque ligula. Sed non nulla dapibus, iaculis felis non, mattis dolor. Donec venenatis est sit amet magna semper suscipit. Donec vel neque a augue scelerisque gravida eu a erat. Nullam varius est neque, eget convallis risus tincidunt ut. Mauris interdum ut odio vitae fringilla.

Sed quam arcu, elementum vel vestibulum vel, dignissim eget metus. Cras sagittis velit purus, nec volutpat nibh tristique at. Curabitur luctus nulla a elit fermentum sagittis. Aliquam vel condimentum dui. Donec viverra lectus ac sodales sagittis. Sed commodo sit amet purus quis porta. Morbi suscipit commodo lectus, laoreet effi

<?php
declare(strict_types=1);
namespace App\Faker\Provider;
use function copy;
use function curl_close;
use function curl_exec;
use function curl_getinfo;