The User Entity and The Ubiquitous Language

Over the last couple of weeks we’ve looked at using the power of Object Orientated Programming to encapsulate the business rules of our application. By defining Value Objects such as Email, Username and Password we can ensure that the objects we are working within our application follow the explicit rules of the business. Next we […]

Continue reading...

Design Inspiration #152

Design Inspiration from Jet Edge, JUMO, Icon PR, Geckoboard and Heck House! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Jet Edge http://www.flyjetedge.com JUMO http://www.newjumoconcept.com Icon PR http://www.iconpr.com.au Geckoboard https://www.geckoboard.com Heck House http://heckhouse.com

Continue reading...

How to create an Active Record style PHP SDK Part 8

Last week we looked at setting up the foundation of being able to query the CapsuleCRM API. First we separated the querying functionality into it’s own directory and split each querying action into it’s own trait. Next we created the convention of inferring the API endpoint, but also allowing local configuration to override this convention […]

Continue reading...

Implementing The Specification Pattern

Last week we looked at encapsulating business logic within Value Objects. By using the characteristics of Object Orientated Programming we can maintain the integrity of our business rules within the harmony of using plain old PHP objects. One of the rules that we needed to implement last week was the uniqueness of a user’s username […]

Continue reading...

Design Inspiration #151

Design Inspiration from Biamar, V76 by Vaughn, Saucey, Space Style Concept and AKQA! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Biamar http://biamar.com.br V76 by Vaughn http://www.v76.com Saucey http://sauceyapp.com Space Style Concept http://www.spacestyleconcept.com AKQA http://www.akqa.com

Continue reading...

How to create an Active Record style PHP SDK Part 7

One of the most important aspects of creating an API SDK is the ability to effectively query the underlying API in order to allow the developer to retrieve resources. So far in this series we’ve looked at setting up the HTTP Client using Guzzle and then creating the abstract model that will form the foundation […]

Continue reading...

Encapsulating your application’s business rules

Over the last couple of week’s we’ve looked quite extensively into integrating Doctrine 2 into a Laravel project as well as the unique characteristics and functionality Doctrine 2 offers us as the ORM layer to our applications. Doctrine 2 is an implementation of The Data Mapper pattern. The Data Mapper pattern promotes the separation of […]

Continue reading...

Design Inspiration #150

Design Inspiration from Adventure, Kaber, Garden, Montage and Circle! Design Inspiration is a weekly post that showcases examples of some of the best new web design from around the internet. Adventure http://adventure.com Kaber http://kabertech.com Garden http://gardenestudio.com.br Montage http://www.montagebook.com Circle https://www.circle.com

Continue reading...

How to create an Active Record style PHP SDK Part 6

Over the last couple of weeks we’ve looked at setting up the foundation of creating an Active Record style PHP SDK. One of the beautiful things about the Active Record pattern is the very intuitive and easy to use interface that is presented to the developer. The Active Record pattern presents entities and their storage […]

Continue reading...

Working with Doctrine 2 Filters

A common requirement you will hear from a business owner or a client is the ability to “filter” results in some sort of way. For example, you probably never want to show spam comments on blogs posts, or you might want to mark certain users as “deleted” without actually having to delete them from the […]

Continue reading...

Supported by