Latest Laravel/PHP Articles

Latest Laravel/PHP Articles curated daily from around the web.


Eloquent Castable attributes are one of the more powerful features of Laravel; some people use them religiously while others tend to shy away from them. In this...
Working with third-party APIs can be frustrating; we get JSON responses which in PHP will be represented as a plain old array - and we send data as arrays too....
The biggest issue with working with third-party APIs is that we have very little visibility. We integrate them into our code base and test them - but we have no...
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Laravel celebrated its 10th-anniversary last year. Today it is the most popular PHP framework used by thousands of developers. The ecosystem around Laravel is h...
Over the last few years static analysis in PHP, and more specifically Laravel, has become more and more popular. With more people adopting it into their Softwar...

www.juststeveking.uk

Laravel subdomains in Docker
There are many ways you can add Docker to your Laravel application, but how do you add docker to your Laravel application when you need sub domain support? In t...
We have all been there, we want to integrate with a 3rd party API in Laravel and we ask ourselves "How should I do this?". When it comes to API integrations I a...
Digital Ocean Providing developers and businesses a reliable, easy-to-use cloud computing platform of virtual servers (Droplets), object storage ( Spaces), and more.

www.juststeveking.uk

Laravel Command Bus
In Laravel 5.1 the Command Bus was replaced with Dispatchable Jobs, we can still use them but let us also look at how to add a Command Bus. To start using a com...
I recently saw an awesome tweet while browsing twitter which introduced this idea of tappable query scopes, and wanted to share it and dig into it a little more...
I have been building CLI apps for a long time, from simple bash/perl scripts back when I was a System Admin - and now using things like PHP Go or Rust.

www.juststeveking.uk

Sauber PHP
I have used a lot of different frameworks in my career, from Zend(Laminas) to Yii, Cake to Codeignitor, SlimPHP to Laravel and more. They all have their own way...
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
In a typical Laravel application we are very used to doing things in a certain way, by the book as they say. However there comes a point in the applications lif...

www.juststeveking.uk

Adapter Pattern
Of all of the design patterns you could use in your code, the adapter pattern is one of my all time favourites. It allows you to abstract the implementation to...
I get asked about API response testing a lot, how should you do it, and where to start. I have a general rule when it comes to testing APIs, and that rule is: “...
Sending API requests in any PHP framework has always been a little bit of a manual process, yes you can create an SDK or wrapper - but you are still having to d...