$blog++

Php Archives

Php magic methods - The complete guide

Oct/08/2012 7 min read by Marco Monteiro

PHP has a few ‘magic’ methods that you can use in OOP (Object oriented programming). All of them must be identified with two underscore prefix and they act as interceptors that will run then certain required conditions are met. So as you can see these methods are extremely useful.

Read more

Starting with PHPUnit

Sep/26/2012 3 min read by Marco Monteiro

Last week I told you all about my next set of articles on my blog. My main focus will be PHPUnit and Composer. Not because I’m an expert about the subject, but for the exact opposite — I’m learning as I go. Let’s define “the thing” first.

PHPUnit is the de-facto standard for unit testing in PHP projects. It provides both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results.

That take us to another subject. Test Driven Development or TDD.

Read more

Starting with composer

Sep/20/2012 3 min read by Marco Monteiro

I’m just getting started with Composer. I’ve been reading a lot about it and I think it’s the way to go. I don’t know many common developers (like me) that are already using it, but I’m going to give it a go. No more Git articles for you. From now on the two main subjects on my blog will be Composer and Unit Testing, since I decided that’s what I’m going to do next. What is this thing called Composer?

Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.

Read more

My mistress has a name, it's called Laravel

Sep/05/2012 3 min read by Marco Monteiro

That’s right, I finally gave it a go and spent some time with my new mistress. I only played around with it for a few hours and I’m already blogging about it. That’s how cool it is. Laravel is a clean and classy framework for PHP web development. Freeing you from spaghetti code, Laravel helps you create wonderful applications using simple, expressive syntax. Development should be a creative experience that you enjoy, not something that is painful. Enjoy the fresh air.

Read more

Using the sparks system with kittens

Apr/24/2012 1 min read by Marco Monteiro

This is my first screencast, I’ve done it without any script. I used it just to try out the screencast software and to actually see if I should start doing this or just stay with the written articles.

Please leave feedback on things to improve.

Read more