Luciano Mammino

Web developer, entrepreneur, fighter, butterfly maker!

Write a console application using Symfony and Pimple

In this article I will show you how to set up a stand alone command line application by using the Symfony Console component and Pimple . Writing console commands for Symfony (full stack framework) is easy and enjoyable. It helps a lot when you need to handle particular collateral tasks that are needed, in a way or another, to make your website running (processing and crunching data, make async requests, create reports, etc.). Anyway I discovered that writing stand alone command line applications using…

Integrating Twig.js and BazingaJsTranslationBundle

Recently I had the need to run a twig template that uses the filter on my frontend using twig.js , a pure JavaScript port of twig written by the good Johannes Schmitt . The JavaScript version does not handle all the functionalities offered by the original PHP version (even if it goes pretty close) and in particular it does not natively handle the filter. So, at first, I got a JavaScript runtime exception on my page when trying to use the template. Luckily enough the JavaScript version of twig is…

Symfony security: authentication made simple (well, maybe!)

The Symfony2 security component has the fame of being one of the most complex in the framework. I tend to believe that’s partially true, not because the component is really that complex, but because there are (really) a lot of concepts involved and it may be difficult to understand them all at once and have a clear vision as a whole. I am in the process of writing an OAuth bundle and I faced the need to deeply understand how the authentication process work in Symfony2 to being able to integrate the…

Writing a new Extractor for PHPoAuthUserData

In my previous post I introduced my latest library PHPoAuthUserData that allows to abstract the process of extracting user profile data from various OAuth providers ( Facebook , Twitter , Linkedin , etc). The library still need a lot of work, especially to write the logic to extract data from all the services available in the parent OAuth library . At the moment the library supports only the most common OAuth providers. I would be glad to support all the following services: Amazon, BitBucket, BitLy…

New PHP library: PHPoAuthUserData

I recently wrote a new PHP library to simplify the extraction of user data ( name , email , id , etc…) from various OAuth providers such as Facebook , Twitter and Linkedin . Is well know that OAuth 1 and 2 are great standard protocols to authenticate users in our apps. Anyway we often need to go further the authentication process and extract various information about the authenticated users. Unfortunately this is something that is not standardized and obviously each OAuth provider manages user…

Backup your server with Dropbox

In my early days as CTO at Sbaam I had to setup a web server from the ground up. As it happens in many startups the work had to be done quickly and with an almost-0-budget , so it left no space to sophisticated solutions for recurring tasks such as backup . I always have been a web developer and focused on coding so, I admit I had really a poor knowledge about how to setup a remote unix virtual machine. So, speaking about backups, I needed a solution that would be cost-effective, easy to install and…

Finally/First

Yep! Finally here’s the first post on the path of this blog. Finally/first , indeed a curious binomial with a weird sound, but I think it’s a good title to start this adventure. I’ll try to keep it simple and avoid to bloat things out… just start dancing by answering to a simple question, maybe the proper one now: Why start a blog? Well, I’m a web developer, fascinated by the web since I was a child and started writing my first lines of code in qbasic , and as any other serious web developer it…