Directory Uploads in PHP 8.1
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]
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]
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.
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."
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.
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.
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]
Here's a cool technique by Bram Van Damme
Read more [www.bram.us]
– 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]
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]