What is iterative coding? In the context of coding, an iteration is a development phase that produces a working artifact. In other words, at the end of each iteration we have a working piece of software, which can be used and tested, even if it has not all project features yet. The whole point of it is, customers should be […]
You may have heard of DDD and, yet again, you may not have. Let us give you a short introduction so that we all know what it is and future articles may build on this knowledge. DDD (Domain-Driven Design) is a different way of thinking about your software; in fact it is probably the right way to think about it. […]
What’s Twig If you use Symfony you also probably use Twig (http://twig.sensiolabs.org/). It is a very flexible layout system and it makes it really easy to: extend a base layout include external sublayouts Even though Twig requires you to learn a slightly different syntax, I feel it’s well worth it and I am completely happy with it. Let’s take a […]
Quindi, ho dovuto creare un livello API su un codebase esistente (ma noto) esistente. Sembra facile, eh? Sì, è quello che ho pensato anch’io. Sfortunatamente, le cose non erano così facili: quando ho iniziato a entrare nei dettagli, ho trovato alcune trappole.
tl;dr Install the php5-sybase package This will install on Ubuntu the drivers required to connect to a Microsoft SQL Server. Test connection from PHP We want to make sure PHP is working before moving on to Doctrine. See below for a sample test PHP script. Install the leaseweb/doctrine-pdo-dblib bundle Doctrine out of the box does not support connecting to a […]
A while ago the Symfony project published a “Best Practices” book. This is a source of excellent suggestions and it’s written by the people who wrote Symfony in the first place, so we decided to stick to it as much as possible, even in those few cases where the benefits where not immediately clear. But after a few more Symfony […]
Monolog Monolog is a logging library. It is extremely powerful and most of the time only a tiny subset of its features are actually used. Just to mention a few extra features: we can define different and complex logging strategies to keep only really interesting stuff we can define to send our log to DB, to mail, to webservices we […]
In your Symfony application there are bound to exist many assets (JS, CSS, and so on) either created by you or provided by third-party bundles. As part of your deploy procedure, you usually have to use some Symfony console command to actually make the assets available to the frontend of your application. Let’s start with the most basic solution: the […]