Improving readability by decreasing indentation original
Readability of code can be vastly improved by decreasing indentation. In this video we'll reverse conditions and early returns to accomplish this. If you want to see more videos like this one, head over to the video section at Spatie.
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.
"Freek’s newsletter is one of the best ways to stay updated with the Laravel and PHP ecosystem. It consistently highlights useful packages, tools, and ideas from the community, especially the amazing work coming from Spatie. As a Laravel developer building SaaS and web platforms, I find it extremely helpful to discover practical tools and insights that improve my development workflow."
How to generate and view code coverage reports in PhpStorm using PHPUnit and Xdebug
In this video, you'll learn how to generate code coverage reports, and how to display them directly in PhpStorm.
This video is part of our Laravel Package Training video course. In that course, you'll learn how to create both framework agnostic and Laravel specific packages. We'll also source dive some popular Spatie packages together, so you can pick up some tricks we apply there.
What your admin panel tells us about your company
– frederickvanbrabant.com - submitted by Frederick Vanbrabant
My buddy Frederick wrote an interesting post on why he always checks out the admin panel of an app instead of the code.
Read more [frederickvanbrabant.com]
How to Build and Autoload Your Own PHP Package Locally
Matt Stauffer shows a good workflow for this.
Read more [mattstauffer.com]
Learn how to create PHP and Laravel packages using our new premium video course original
Together with my colleagues at Spatie, we have produced over 200 packages with more than 75 million downloads in total.
We learned a lot by quality packages like laravel-permission, laravel-backup, browsershot, laravel-medialibrary, and many more. We feel we have a pretty good workflow to produce reliable, readable, and maintainable packages.
We want to share the knowledge we have built up over the year with you in our new premium video course, titled Laravel Package Training.
How we created over 200 PHP and Laravel packages original
I work at and co-own a company named Spatie, which specializes in creating large Laravel applications for our clients. Our team is rather small: we consist of only 10 people. At first glance we are a software development company like there are so many others. But there’s one thing that sets our company apart: we have an open source first policy. We try to create and contribute to open source as much as possible.
Currently we have around 200 open source repositories on GitHub. Our packages have been downloaded nearly 75 million times. They are being downloaded 4,5 million times each month. Probably we will hit 100 million downloads by the end of this year.
We've also just released our premium video course, titled Laravel Package Training. In this course, we use our experience to teach you how to build reliable and maintainable packages.
This all did not happen overnight. Read on to learn the story behind our open source efforts.
Avoiding inheritance in Laravel
Jason McCreary makes the case for using traits over reaching for inheritance.
Read more [jasonmccreary.me]
Builders and architects: two types of programmers
My colleague Brent wrote an interesting piece on how different people with different personaliteits can work together.
Read more [stitcher.io]
In defence of mocking frameworks
Dave Marshall replies to a blogpost that Frank De Jonge published recently.
Read more [davedevelopment.co.uk]
Your App is a Package Manager
A nice way of structuring an app and good example of handling multitenancy in a light way by the Tighten team.
Read more [tighten.co]
PHP Versions Stats - 2020.1 Edition
Jordi Boggiano - also known as Mister Composer - published some fresh stats on PHP version usage.
Read more [blog.packagist.com]
The Miracle Sudoku
In this video you can see an extraordinary Sudoku being solved. It has nothing to do with programming, but it's fun to see how Mitchell Lee thinks while solving this one.
Laravel Pseudo-Daemons
– aaronfrancis.com - submitted by Aaron Francis
A Laravel package to mimic daemons via scheduled commands without having to change server configuration.
Read more [aaronfrancis.com]
The Backend For Frontend Pattern
Mohamed Said explains an interesting pattern for you to consider that can potentially make authenicating from the frontend easier.
An unopinionated package to make Laravel apps tenant aware original
Today we released a package to make Laravel apps tenant aware, called laravel-multitenancy. The philosophy of this package is that it should only provide the bare essentials to enable multitenancy.
The package can determine which tenant should be the current tenant for the request. It also allows you to define what should happen when switching the current tenant to another one.
It works for multitenancy projects that need to use one or multiple databases.
In this blog post, I'd like to introduce the package to you.
Sharing PHP-CS-Fixer rules across projects and teams
Tim MacDonald shares a nice way to go about this.
Read more [laravel-news.com]
Attributes in PHP 8
My colleague Brent clearly explains an awesome feature coming in PHP 8.
Read more [stitcher.io]
Grandfathering in legacy
Here's a nice technique that you can use in legacy projects.
Read more [madewithlove.com]
Complexity Has to Live Somewhere
– ferd.ca
What's the ideal amount of abstraction? When does a framework start having "too much magic"? When are there too many languages in an organisation?
Read more [ferd.ca]