Skip to content

Jean-Pierre Lambelet

Il n'y a pas de questions bêtes

  • Programming tips
  • About JP
  • English
    • Français

Programming tips

PHP 

PHP Spaceship Operator <=>

March 16, 2021March 16, 2021 JP 0 Comments

A little known but very useful operator, for example ordered an array list, is the spaceship operator or combined: <=>

Share this:

  • Twitter
  • Facebook
Read more
PHP Symfony 

PHP style code: How to keep its code clean with PHP Coding Standards Fix

March 11, 2021March 11, 2021 JP 0 Comments

A really useful tool to keep its code clean and use the tool PHP Coding Standards Fix It allows us

Share this:

  • Twitter
  • Facebook
Read more
PHPUnit 

PHPunit: How to test a controller which throws an error.

February 12, 2021February 12, 2021 JP 0 Comments

Let’s say we have a method in a controller like this: /** ‘@Route (path’/add’, name'”add,” methods */ public function add

Share this:

  • Twitter
  • Facebook
Read more
Docker PHP 

Start a new Symfony5 project with docker-compose, Nginx , Php 7.4 and MariaDB

November 30, 2020November 30, 2020 JP 0 Comments

This article will contain all the steps necessary to create a symfony5 project with docker-compose, nginx and php 7.4. File

Share this:

  • Twitter
  • Facebook
Read more
Symfony4 

Symfony4 how to create a custom error page 404

July 20, 2020July 20, 2020 JP 0 Comments

You have to start by installing the necessary bundle: compose require symfony/twig-pack When done, create the template error404.html.twig templates/ Bundles/

Share this:

  • Twitter
  • Facebook
Read more
Wordpress 

WordPress – how to install wp-cli on Ubuntu

February 13, 2020February 24, 2020 JP 0 Comments

Start by downloading wp-cli curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar Then give him the right to be executed chmod +x wp-cli.phar Then move

Share this:

  • Twitter
  • Facebook
Read more
Bash 

Search and replace in the terminal

November 15, 2019November 19, 2019 JP 0 Comments

On Ubuntu it is possible to search and replace a word or phrase with a simple command line sed -i’s/original/new/g’

Share this:

  • Twitter
  • Facebook
Read more
Symfony4 

Upload multiple files to an entity with Symfony4 and VichUploaderBundle

March 25, 2019November 19, 2019 JP 0 Comments

Preparation   To begin with we need an entity Product as well as a ProductImage entity that will contain the

Share this:

  • Twitter
  • Facebook
Read more
Symfony4 

Symfony 4 – How to debug twig with dump()

March 12, 2019November 19, 2019 JP 0 Comments

To have a usable rendering of twig’s ‘dump’ command like this: just use this command: composer require debug –dev

Share this:

  • Twitter
  • Facebook
Read more
Javascript 

Background script

July 30, 2018November 26, 2019 JP 0 Comments

To launch a script in the background from the terminal, just use the command tmux Once inside, just run the

Share this:

  • Twitter
  • Facebook
Read more
  • ← Previous
  • Français
  • English

Recent Posts

  • Symfony – Doctrine – How to see where a sql query is executed
  • Install drupal/console on drupal 9
  • PHP Spaceship Operator <=>
Copyright © 2025 Jean-Pierre Lambelet. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.