Meter objects, Php Design Pattern

Long running operations are not necessarily a bad thing, for example to slowly import or export data on the boundary between two systems without causing a huge load on one of them

read more by Giorgio Sironi in Developers

Write your first PHP Class in C

To write a PHP Class in C you need to deal with the zend_class_entry, a data structure that will contain your object methods, properties and so on. To declare a class you have to declare it in your file and registe...

read more by Lorenzo Fontana in Developers

Bisecting your code with Git in order to identifies regressions with PHPUnit

It is often the case when an application shows a Bug, not present in previous revisions, involving a function not really new but quite used. So it may be useful to own the code revision history to search the exact moment, ...

read more by Walter Dal Mut in Developers

Esxplose your translation to javascript client

This article discusses how to expose the translation system of symfony, so that it is made  available to your javacript scripts.   For translation handling purposes in symfony, we suggest to install JMSTranslat...

read more by Alessandro Nuzzo in Developers

Symfony Accesss Control made easy by route tagging ad voters

Symfony 2 ships with a powerful Security Component that can be used to manage user authorization and authentication, handling all the common facilities from the user login to the access control

read more by Giorgio Cefaro in Developers

Create API for existing PHP project using Apigility

In the previous article we showed how to create a new RESTful API service using Apigility, now we want to interact with an existing PHP application to publish an API. The goal is to interact with the business logic ...

read more by Enrico Zimuel in Developers

Symfony and AngularJs manage routes

The main risk for an application using both symfony and angularjs is the duplication of    information.   Both frameworks have their own methods to handle routing

read more by Alessandro Nuzzo in Developers

Symfony and AngularJs twig integration

Symfony and angularjs are two frameworks widely used on the web, also together. Today we'll discuss how to solve problems when they are used together, ie when angularjs is  used inside of the templating engine ...

read more by Alessandro Nuzzo in Developers

Using spies in your tests with PHPUnit

When developing a complex system, you often need to be sure that a given dependency is checked by the encapsulating entity, in a precise manner. For example, the wrapper of a HTTP Client needs to check that, at invocation ...

read more by Walter Dal Mut in Developers

Test API with ZendTest

Zend Framework 2 is one of the more famous MVC and modular PHP frameworks. One of the components provided by this tool, is ZendTest, a set of tools useful to test the applications designed with this framework

read more by Gianluca Arbezzano in Developers


Follow Us