Using Doctrine Query Language

Over the last couple of weeks we’ve looked at Doctrine 2 and how to use it in your PHP projects. Doctrine 2 is an implementation of the Data Mapper pattern and so it allows you to make a clean separation of your application’s business rules from the persistence layer of the database. In this week’s […]

Continue reading...

Design Inspiration #147

Design Inspiration from Vessyl, Mod Notebooks, Ante Meridiem, Format, Vifa! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Vessyl https://www.myvessyl.com Mod Notebooks http://modnotebooks.com Ante Meridiem http://www.antemeridiemdesign.com Format http://format.com Vifa http://www.vifa.dk

Continue reading...

How to create an Active Record style PHP SDK Part 3

Models are one of the most important aspects of implementing the Active Record pattern. Models in the Active Record pattern inherit the ability to read, create, update and delete from the persistence storage and they also give you access to the properties and relationships of the record you are working with. Models in the Active […]

Continue reading...

Working with relationships in Doctrine 2

Last week we looked at setting up the User entity in Doctrine 2. Entities in Doctrine 2 are different to those in Eloquent in a number of ways. Firstly, they are just plain PHP objects and so they don’t have any responsibility when it comes to how they are stored. Secondly they have annotations that […]

Continue reading...

Design Inspiration #146

Design Inspiration from The Yellow Conference, Anyi Lu, Monte Ré, Pastini Pastaria and Fixed! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. The Yellow Conference http://yellowconference.com Anyi Lu http://anyilu.com Monte Ré http://www.montere.it Pastini Pastaria http://www.pastini.com Fixed http://fixedagency.com

Continue reading...

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

Supported by