How to create an Active Record style PHP SDK Part 2

One of the most important characteristics of the Active Record pattern is how the persistence is tightly coupled to the entity. This tight coupling allows you to very easily, create, read, update and delete from the object you are working with. When working with an ORM such as Laravel’s Eloquent, the persistence layer would be […]

Continue reading...

Working with Entities in Doctrine 2

Entities are one of the most important building blocks when building a web application. Entities are objects that have an identity within our applications. So for example a User would be an entity, or a Post would be an entity. In previous tutorials we would create an Eloquent model to represent an entity. An Active […]

Continue reading...

How to create an Active Record style PHP SDK Part 1

Over the last couple of years, more and more online applications and web services have opened access to their APIs. This has been a fantastic opportunity to integrate various different applications together, pull data from sources or connect and build upon third-party services. What’s more, a lot of the more developer focused services even produce […]

Continue reading...

How is Doctrine 2 different to Eloquent?

One of the really great things about ORM’s that implement the Active Record pattern like Eloquent is, they are really easy and really intuitive to use. With Active Record, you basically just have an object that you can manipulate and then save. Calling save() on the object updates the database, and all of the magic […]

Continue reading...

What is Reflection in PHP?

Reflection in software development is something that is used quite often, but rarely seems to be a topic that is taught when learning how to write code. For me, Reflection was really just a concept that I stumbled upon along the way, I had no idea of why you would use it or what kind […]

Continue reading...

Getting started with Doctrine 2 and Laravel

So far in this Building Cribbb series of tutorials I’ve used Laravel’s Eloquent ORM to handle dealing with the database. Eloquent makes querying, inserting, updating and deleting data from a database really easy, and it comes bundled with Laravel meaning everything is set up right out of the box for you. However recently I’ve been […]

Continue reading...

What are PHP Traits?

One of the problems of PHP as a programming language is the fact that you can only have single inheritance. This means a class can only inherit from one other class. However, a lot of the time it would be beneficial to inherit from multiple classes. For example, it might be desirable to inherit methods […]

Continue reading...

The Foundations of CRUD in Laravel 4

CRUD (Create, Read, Update and Delete) are the four basic functions that you will see in a lot of web applications. These four simple functions allow us to accomplish a great deal when it comes to working with data that needs to be stored in persistent storage such as a database. Laravel 4 provides a […]

Continue reading...

Creating Registration Events in Laravel 4

Over the last couple of weeks I’ve looked into setting up a registration process for your Laravel 4 applications. First I looked at setting up the basic foundation of a registration process to allow users to sign up with a username and password. Next I looked at setting up authentication using a social provider such […]

Continue reading...

Supported by