PHPNews

Install Older Versions of NodeJS

NodeJS introduced some breaking changes in its [0.10 version](http://blog.nodejs.org/2012/12/20/streams2/). Because this breaks so many packages, I often need to install pre-0.10 versions of Node. Here's how to do that in Ubuntu 12.04 server.

Continue reading »

Written by Fideloper - - Aggregated on Sunday January 1, 2017


Full-Site Delivery with Cloudfront

If you have a highly-trafficked site or want the best site-speed for global traffic, using a CDN such as Amazon's Cloudfront might be worth your time. Here I investigate whether it's worth using Cloudfront to deliver not just static assets, but your whole site.

Continue reading »

Written by Fideloper - - Aggregated on Sunday January 1, 2017


Managing the Iptables Firewall

Your firewall is an important first line of defense on any publicly-accessible server. In [previous](http://fideloper.com/ubuntu-12-04-lamp-server-setup "ubuntu php apache setup") [articles](http://fideloper.com/ubuntu-12-04-lemp-nginx-setup "ubuntu php nginx setup") I listed how to set up a firewall without getting …

Continue reading »

Written by Fideloper - - Aggregated on Sunday January 1, 2017


Database Transactions in Laravel

Laravel's documentation on Database Transactions describes wrapping our database calls within a closure. What if we need more power? Let's dig in to see what's going on behind the scenes, and what tools we have to work with Database Transactions in Laravel.

Continue reading »

Written by Fideloper - - Aggregated on Sunday January 1, 2017


HHVM, Nginx and Laravel

Lots of people have been asking about how to install HHVM with Nginx for use with Laravel. Here's how! This will cover material used in [Vaprobash](https://github.com/fideloper/Vaprobash), my project for configuring Ubuntu virtual machine with Vagrant.

Continue reading »

Written by Fideloper - - Aggregated on Sunday January 1, 2017


How We Code: ORMs and Anemic Domain Models

In this article, I'm going to cover an example of implementing some business logic in our usual Active Record patterns, and then I'll show how the same logic can be applied using the Data Mapper pattern. In both cases, we'll see how we can move our business logic into our business entities, thus avoiding anemic …

Continue reading »

Written by Fideloper - - Aggregated on Sunday January 1, 2017


Hexagonal Architecture

I recently gave a talk on Hexagonal Architecture at Laracon NYC. The feedback was great, but seemed to have left people wanting for some extra explanation and of course examples. This is an attempt to expand on the ideas of that presentation.

Continue reading »

Written by Fideloper - - Aggregated on Sunday January 1, 2017