Archive for the ‘Patterns & Practices’ Category

An Alternative Laravel Package Development Workflow

Posted on: No Comments
Every framework gives developers a way to extend the system using packages / extensions. We can generally hook in our logic at any point where we want to provide specific functionality, and Laravel is no exception! Following the article of my fellow au...

How Can I Use Laravel Envoyer or Deployer with SemaphoreCI?

Posted on: No Comments
Test automation, continuous integration, and continuous delivery are quite widespread in the community now. This brought to life multiple services trying to make the process more enjoyable and less overwhelming for developers, so they can focus on deli...

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

Parallel Programming with Pthreads in PHP – the Fundamentals

Posted on: No Comments
PHP developers seem to rarely utilise parallelism. The appeal of the simplicity of synchronous, single-threaded programming certainly is high, but sometimes the usage of a little concurrency can bring some worthwhile performance improvements. In this a...

Sourcehunt – Build a Medium Exporter + Cool New Libs!

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

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

PHP Fractal – Make Your API’s JSON Pretty, Always!

Posted on: No Comments
If you've built an API before, I'll bet you're used to dumping data directly as a response. It may not be harmful if done right, but there are practical alternatives that can help solve this small problem. One of the available solutions is Fractal. It ...

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

Laravel Dusk – Intuitive and Easy Browser Testing for All!

Posted on: No Comments
End to end testing for JavaScript applications, particularly single-page-apps, has always been a challenge. To that end, Laravel released its 5.4 version recently with a new testing library: Dusk. With the release of Dusk, Laravel hopes to give its u...