It’s not legacy code — it’s PHP
– medium.com – Edit
"When it feels safe to make changes to code, it’s not really legacy code any longer".
Read more [medium.com]
– medium.com – Edit
"When it feels safe to make changes to code, it’s not really legacy code any longer".
Read more [medium.com]
by Freek Van der Herten – 3 minute read – Edit
Earlier this year, Travis CI announced a new pricing model that effectively ends the generous open-source offering they had for many years. It seems that, even though there were some plans to provide free resources for OSS projects in the future, all activity for OSS projects has stopped.
At our company, we create a lot of open-source projects and packages. Beginning 2020, we already moved most of our stuff to GitHub actions.
Sure, you can read the GitHub actions docs to start learning the possibilities, but in my experience, it might be better to see some examples of practical uses cases. Here are some interesting links that might help you get started with GitHub actions.
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."
– livewire.run – Edit
This is a great newsletter run by Liam Hammett. Here's the latest edition, so you know what you're getting into.
Read more [livewire.run]
– protone.media - submitted by Pascal Baljet – Edit
Introducing a new Laravel package that allows you to re-use scopes as a boolean attribute on Eloquent models.
Read more [protone.media]
by Freek Van der Herten – 2 minute read – Edit
At the time of writing there is no version of Imagick compatible with PHP 8. Fortuntely, the version on the master brach of the Imagick repo seems to work. Here's how you can use it. Clone the repo somewhere on disk Follow the steps mentioned here to create the extension. cd <directory of cloned…
– stitcher.io - submitted by Brent – Edit
Here's a rundown of all the shiney new features.
Read more [stitcher.io]
– stitcher.io – Edit
Concise instructions on how to install PHP 8 locally.
Read more [stitcher.io]
by Freek Van der Herten – 4 minute read – Edit
To get the backtrace in PHP, you can use the debug_backtrace function. By default, it can be hard to work with. Using our newly released spatie/backtrace package, this becomes much simpler.
Let's dive in!
The ArrayShape one is pretty interesting.
Read more [blog.jetbrains.com]
This cheat sheet offers handy snippets that demonstrate cool stuff you can do with modern PHP
Read more [front-line-php.com]
Here's an excerpt taken from Front Line PHP where different strategies to handle null are explained
Read more [front-line-php.com]
Developed by Derick Rethans, Xdebug 2 is the current stable version. Xdebug 3 had its first RC release out just a few days ago, and this post benchmarks the performance improvements in the new version.
Read more [php.watch]
I needed to display only the first picture from my Product's model media collection and found my app running five queries and hydrating 16 models with only four products to display 😱 . Here's how I ended with only two queries and eight models.
Read more [naxon.dev]
– marmelab.com – Edit
In this post, Francois Zaninotto explains why and how he stopped working on Faker.
Read more [marmelab.com]
by Freek Van der Herten – 14 minute read – Edit
I'm proud to announce that Media Library Pro is now available. Media Library Pro is an add-on package for our free Media Library base package. It contains a set of Blade, Vue and React components that make it easy to upload files to media library and to manage files inside of a media library collection.
In this blog post, I'd like to introduce Media Library Pro to you.
Here's an entire chapter taken from Front Line PHP, a course on building moderns apps with PHP 8
Read more [front-line-php.com]
by Freek Van der Herten – 4 minute read – Edit
We have released a new package, called spatie/laravel-settings, that allows you to strongly type settings in a Laravel app. In this blog post, I'd like to introduce the package to you.
by Freek Van der Herten – 2 minute read – Edit
For a project, I needed to make sure that a particular piece of data actually came from a specific source. There are already many packages that allow you to do this, but most are not fun or easy to use. That's why we created a new package called spatie/crypto to do this.
by Freek Van der Herten – 1 minute read – Edit
Together with my colleague Brent, I've created Front Line PHP, a book and video course on building modern applications with PHP 8. You can purchase the book here.
The video course is entirely free. Head over to our website to see videos on all new major PHP 8 features.
Ever needed to apply filters on a query conditionally, only when the user actually applies them? Laravel query builder's method when got you covered.
Read more [naxon.dev]