Packages
We've created more than 400 packages for Laravel and PHP. These packages have been downloaded a whopping 1.43 billion times! All packages
laravel-backup
A package to backup your Laravel app
laravel-health
Check the health of your Laravel app
laravel-medialibrary
Associate files with Eloquent models
laravel-query-builder
Easily build Eloquent queries from API requests
simple-excel
Read and write simple Excel and CSV files
Favorite packages
from our team
We've asked some of our colleagues about their favorite packages and why they enjoy them.
laravel-sluggable
It was the first Spatie package I've ever added to one of my composer.json files. At that time, I wasn't working for Spatie yet, but I loved the idea of such a simple package. It has only one use case: take the field of an Eloquent model and make a slug from it so that the model can be queried with that slug. The docs are excellent, and the API is easy to use. It is the perfect example of a terrific Spatie package. And it, in the end, made me start working at Spatie.
laravel-medialibrary
At Spatie, we use Media Library in every single project. I still remember I was still learning some basics of Laravel when coding up the first version of the media library. For the media conversions, queues are used, and this was the very first time I used queuing which felt very empowering. Currently, the package is already at v11, which is a nice indication of how much we interacted on this package, it's well polished now.
typescript-transformer
At Spatie, we are a fan of Inertia. This package truly shines when we need to define types for both PHP and TypeScript, and keep them in sync. By parsing PHP files and transforming them into TypeScript type declarations, we save time and mental effort but also streamline the refactoring process.
All
packages
backtrace
A better backtrace
ignition
A beautiful error page for PHP apps
flare-client-php
Send PHP errors to Flare
laravel-ignition
A beautiful error page for Laravel apps
laravel-package-tools
Tools for creating Laravel packages
laravel-permission
Associate users with roles and permissions
temporary-directory
A simple class to work with a temporary directory
image-optimizer
Easily optimize images using PHP
macroable
A trait to dynamically add methods to a class