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...

Design Inspiration #145

Design Inspiration from The Music Bed, Antico Setificio Fiorentino, KEECKER, Grain & Mortar and Pollen! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. The Music Bed https://www.themusicbed.com Antico Setificio Fiorentino http://anticosetificiofiorentino.com KEECKER http://www.keecker.com Grain & Mortar http://grainandmortar.com Pollen http://pollenlondon.com

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...

Design Inspiration #144

Design Inspiration from Handsome, Tictail, Tectonic Studios, Alchemy and Aquatilis Expedition! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Handsome http://handsome.is Tictail https://tictail.com Tectonica Studios http://www.tectonica.co Alchemy Digital http://www.alchemy-digital.co.uk Aquatilis http://aquatilis.tv

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...

Design Inspiration #143

Design Inspiration from Cast83, Paradox, Framer, LIX and Lander! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Cast83 http://www.cast83.com Paradox http://paradoxcreates.com Framer http://framerjs.com LIX http://lixpen.com Lander http://landerapp.com

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...

Supported by