Moving Symfony files in the Docker container
Once you have created the first configuration of your basic Docker stack, it is time to move the Symfony’s files into Docker’s web server service. This will make us able to run the symfony application from inside the web server container, getting the real benefits of using a system as Docker (same environment on any […]
How to dockerize a Symfony application: Introduction and the web server
Starting to use Docker is not an easy task. Starting to use Symfony on Docker is far more complex. There are too many things to understand before being able to dockerize a Symfony application. I studied Docker for more than one month before being able to dockerize our Symfony applications. How did I reach the […]
How to use the Doctrine command line developing a Symfony Bundle
Maybe you need to use the Doctrine’s command line while you are developing a Symfony Bundle (or anything else). This will make you able, for example, to validate the schema or to convert an annotated schema to its XML counterpart. Here is how to use Doctrine command line outside of a Symfony Application.
Magento 2: SSL certificate problem: unable to get local issuer certificate (cURL problem)
The message “SSL certificate problem: unable to get local issuer certificate” shows up when trying to connect to Magento Connect or when, generally, you try to use cURL to connect to a remote web site. This error happens because cURL cannot find a cacert.pem file from which take the trusted signatures.
How to use LiipImagineBundle to manage thumbnails through Amazon S3
Configure LiipImagineBundle to create thumbnails of images stored on Amazon S3 and save a cache version of them again on S3 may be really painful. In this post I’ll try to guide you step by step in the configuration process, to have a full configured data flow to create thumbnails stored on Amazon S3 using […]
How to increase PHP memory_limit on CodeShip.io
Some days ago I found myself on front o f a problem: my unit tests failed because of lack of PHP memory. This were the tedious error: PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 16640 bytes) As I use CodeShip.io as continuous delivery server, I had to increase the PHP […]
How to upgrade the built-in PHP of your Mac (OsX)
Each Mac has a built-in Apache server that runs a built-in PHP. To upgrade it you need less than 10 minutes once you have understood all the steps needed. The same applies also to install the last PHP 7.1 version: you only need to change the required version of PHP (see below).
A useful php.ini configuration for local development
Here there is a good configuration for your PHP environment. It is a good checklist to use, for example, when you update MAMP.
How to lazy load objects in PHP
Lazy loading is a mechanism that make the script able to load data only when they are required to. So, if we have to load a big graph of data, we don’t load it entirely at the start, but only when it is required for use. This mechanism is very useful as it maintain the […]
How to install XCode Command Line Tools
XCode is the development environment provided by Apple and it contains a set of tools useful for development. One of this tools is XCode Command Line Tool that […] gives terminal users many commonly used tools, utilities, and compilers, including make, GCC, clang, perl, svn, git, size, strip, strings, libtool, cpp, what, and many other […]