Introducing Iterator Functions
– doeken.org - submitted by Doeke Norg – Edit
This post exmplains how you can work with iterators and generators as if they were arrays.
Read more [doeken.org]
– doeken.org - submitted by Doeke Norg – Edit
This post exmplains how you can work with iterators and generators as if they were arrays.
Read more [doeken.org]
– dyrynda.com.au – Edit
Michael Dyrynda explains how you can use immutable dates in Laravel by default.
Read more [dyrynda.com.au]
Join 9,500+ smart developers
Get my monthly newsletter with what I learn from running Spatie, building Oh Dear, and maintaining 300+ open source packages. Practical takes on Laravel, PHP, and AI that you can actually use.
No spam. Unsubscribe anytime. You can also follow me on X.
"As a Laravel developer, this is the one newsletter I most look forward to. Freek has a talent for distilling packages or techniques down to something immediately useful - one tip can save you hours and even weeks. It's concise and practical and highly relevant."
One of the new features in PHP 8.1 is that PHP's $_FILES super global variable now contains the path to the files uploaded by the user.
Read more [php.watch]
by Freek Van der Herten – 1 minute read – Edit
In this stream, Pest creator Nuno Maduro explains how his testing tool works under the hood.
If you want to know how to use Pest (or PHPUnit) to test your application code, consider picking up our Testing Laravel video course.
by Freek Van der Herten – 3 minute read – Edit
Whenever something happens in one of your repos on GitHub, you can configure a webhook to be sent to your app. This way, you can perform some extra logic when a particular event occurs on the repo. A silly example would be to send someone a mail when an issue is opened.
We've created a new package called spatie/laravel-github-webhooks that makes it easy to consume GitHub webhooks in a Laravel app. In this blog post, I'd like to tell you all about it.
– Edit
Knowing how to write automated tests is a fundamental skill for any developer. By adding a quality test suite to your application, you'll end up with fewer bugs in production. It allows you to refactor with confidence using a test suite that has your back.
We're currently recording a new premium video course called Testing Laravel. It will be released in September.
– stitcher.io – Edit
The release of PHP 8.1 will be here within a few months, and once again there are many features to get excited about.
Read more [stitcher.io]
Here's a neat use of our Blink package.
Read more [sebastiandedeyne.com]
JetBrains ran their yearly survey on all the things that devs like and use. Here are the results for the PHP ecosystems
Read more [www.jetbrains.com]
– www.bram.us – Edit
Here's a cool technique by Bram Van Damme
Read more [www.bram.us]
– doeken.org - submitted by Doeke Norg – Edit
Yield better results by iterating over generators. Learn more about these supercharged arrays that can preserve memory.
Read more [doeken.org]
– github.com – Edit
I came across this cool package that helped me debug a weird request performed by Guzzle.
Read more [github.com]
by Freek Van der Herten – 6 minute read – Edit
When reading technical blogpost around the web, you might have noticed that code highlighting is not always perfect.
Shiki is the code highlighter that uses the textmate parser VSCode uses under the hood. The code highlighting it provides is near perfect, even when using modern syntax. It supports 100+ languages (via our package Blade is supported too), and all VS Code themes.
I'm proud to announce that we have released three new Spatie packages that make it easy to use Shiki in your PHP projects:
We're already using this package to render all our documentation pages, our guidelines, and this very blog you are reading.
Learn how to use Laravel Spotlight to supercharge your web application with an easy-to-use command palette that your users will love.
Read more [philo.dev]
– Edit
In the second part of this stream, I'll walk you through the inner workings of our new spatie/laravel-artisan-dispatchable package.
– stitcher.io – Edit
Here are the update stats on PHP usage (Jordi passed the baton to my colleague Brent)
Read more [stitcher.io]
PHP Contributor Larry Garfield walks us through a couple of neat ideas and RFC's for PHP he's been working on. I would very much welcome a pipe operator in PHP.
Read more [peakd.com]
– afilina.com – Edit
Anna Filina shares how she goes about organizing small functions.
Read more [afilina.com]
– lennartcb.me – Edit
In this article Lennart Carstens-Behrens explains a very impressive PR he recently submitted at the Laravel repo.
Read more [lennartcb.me]
Claudio Dekker runs you through the GitHub action he created to automatically handle code styling issues at Laravel
Read more [dekker.io]