Archive for the ‘Design Patterns’ Category

Upgrading Sylius the TDD Way: Exploring Behat

Posted on: No Comments
Last time, we developed some new features on top of Sylius' core to indicate which products and their variants are low on stock and need replenishing. Now, we move on to seeing our changes in the UI, which means we will need to do a bit of StoryBDD tes...

Upgrading Sylius the TDD Way: Exploring PhpSpec

The post on developing and testing new Sylius features was an introduction to the three types of tests that are used in Sylius - PHPUnit, Phpspec and Behat. In this part, we'll extend some core classes to indicate color-coded inventory status. First, w...

Functional Programming with Phunkie: Funky Parser Combinators

Posted on: No Comments
Phunkie is a library with functional structures for PHP. In this tutorial, Phunkie creator Marcello Duarte, head of training at Inviqa, explains how to create Parser combinators using the functional library. This post first appeared on the Inviqa blog,...

Upgrading from PThreads v2 to V3: What to Look out For

Posted on: No Comments
A fair amount has changed for the pthreads extension with the release of pthreads v3. This article aims to cover the necessary information for those who are looking to upgrade their applications from pthreads v2 to v3. If you're unfamiliar with pthread...

Creating Strictly Typed Arrays and Collections in PHP

Posted on: No Comments
One of the language features announced back in PHP 5.6 was the addition of the ... token to denote that a function or method accepts a variable length of arguments. Something I rarely see mentioned is that it’s possible to combine this feature with t...

My Laravel Package Building Workflow

Posted on: No Comments
Packages are a really important part of the Laravel experience (just like with any other framework). Whatever we need to do, there’s probably already a package for it out there; ready for a composer require to bring some magic in. Some weeks ago,...

Covering Laracon: Are Online Conferences Introvert Heaven?

Posted on: No Comments
I've been to my fair share of conferences, and one thing that always happens is there's a clique of us relatively talkative types (I suppose as speakers, we tend to feel empowered), and a whole lot, and I mean a whole lot of very quiet and reserved fel...

Sylius and Cutting Your Teeth on TDD

Posted on: No Comments
Sylius is an e-commerce application / framework based on Symfony. It boasts 100% code coverage, which is impressive for a PHP application of that size. In this article, we are going to walk through the different kinds of tests available and try out so...

Sourcehunt: Idea of the Month and 6 Interesting Repos!

Posted on: No Comments
It's time for our monthly hunt for new open source libraries to use and contribute to! If you're new to Sourcehunt, it's our monthly post for promoting open source projects that seem interesting or promising and could use help in terms of Github stars ...

Achieving Modular Architecture with Forwarding Decorators

Posted on: No Comments
As your web application becomes larger, you certainly start to think more about designing a flexible, modular architecture which is meant to allow for a high amount of extensibility. There are lots of ways to implement such architecture, and all of the...