Generators vs arrays
– doeken.org - submitted by Doeke Norg
Yield better results by iterating over generators. Learn more about these supercharged arrays that can preserve memory.
Read more [doeken.org]
– doeken.org - submitted by Doeke Norg
Yield better results by iterating over generators. Learn more about these supercharged arrays that can preserve memory.
Read more [doeken.org]
I came across this cool package that helped me debug a weird request performed by Guzzle.
Read more [github.com]
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.
"Always fresh, useful tips and articles. Carefully selected community content. My favorite newsletter, which I look forward to every time."
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]
In the second part of this stream, I'll walk you through the inner workings of our new spatie/laravel-artisan-dispatchable package.
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]
Anna Filina shares how she goes about organizing small functions.
Read more [afilina.com]
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]
Knowing how to compile PHP will open one of the few doors necessary for contributing to the PHP language. Once you get familiar with this it will be much easier for you to contribute in many ways such as running tests and uploading reports, writing new tests by yourself and bug reporting/fixing.
Read more [thephp.website]
– dev.to
Erika Heidi created a nice solution to generate and update cover images on your Twitter account. In this blog post she explains it all.
Read more [dev.to]
Alex explains how we use Satis to give users of paid Spatie products access to private repos.
Read more [alexvanderbist.com]
My colleague Brent shares some thoughts on possible improvements to handling config values.
Read more [stitcher.io]
– www.juststeveking.uk - submitted by Steve McDougall
Laravel transporter is an easy to use wrapper around Laravel PendingRequest that allows you to define requests as classes, and override options at run time when you need to.
Read more [www.juststeveking.uk]
Matthias Noback wrote down some good testing advice.
Read more [matthiasnoback.nl]
Our team has released a new Laravel package: spatie/laravel-artisan-dispatchable. This package allows you to dispatch any job from an artisan command.
In this blog post, I'd like to explain why we created the package and how you can use it.
Regular expressions are powerful, PHP but they are not known to be readable, and more often than not, maintaining a regular expression is not a straight-forward task. Here are some tips to improve and write better regular expressions in PHP.
Read more [php.watch]
I'm thrilled to announce that our premium course Event Sourcing in Laravel has just launched.
If you ever wanted to get started with event sourcing, this is the course for you. It contains a beautifully designed ebook, two hours worth of videos, and a demo Laravel app containing an event-sourced shopping cart.
Event sourcing isn't an all or nothing approach. Even if your project doesn't need the full power of event sourcing, you can still benefit from knowing and implementing best practices from the event sourcing world.
We're offering a 20% launch discount for the next two weeks to celebrate this release.
In this stream, you can see my colleague Brent and I launch the course, and answer questions from the audience.
Jess Archer show a nice approach on how to use exception in the HTTP layer.
Read more [jessarcher.com]