I create and I see more and more web applications sharing the same powerful architecture: Server-side, a REST API built with the popular Symfony framework and its ecosystem (especially FOSRestBundle, JMSSerializerBundle and sometimes BazingaHateoasBundle for hypermedia APIs). Client-side, a SPA built with Google’s AngularJS consuming the REST API provided by the server with Restangular or a similar library. These components share the same philosophy (built…
Category: PHP
Entities and Mapping Information with the Doctrine ORM
Another free chapter of my book Persistence in PHP with the Doctrine ORM is available on the Pack Website. In this second chapter of the book, you will: Create your first Doctrine entity class Mapping it to its related database table and columns with annotations Use Doctrine Command Line Tools to automatically generate the database schema…
Building Doctrine queries with DQL and the query builder
A chapter of my book Persistence in PHP with Doctrine ORM is available for free on the Pack website. This chapter explains some interesting Doctrine concepts including DQL (the proprietary SQL-like language of the Doctrine ORM), entity repositories, the query builder and aggregate functions. Read this free chapter on the Packt website.