Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Macroable Laravel Package

spatie/macroable

Add methods to any class at runtime with Spatie’s Macroable trait. Register macros with closures or callables and call them like native methods; macros are bound to the class instance for access to $this. Inspired by Laravel’s Macroable implementation.

View on GitHub
Deep Wiki
Context7
Package
Score
Description
Stars
Likes
Forks
Downloads
Issues
Score
Opportunity
License
Last Release
spatie/image 0.93 spatie/image provides an expressive, chainable PHP API for common image manipulation. Resize to fit a bounding box without altering aspect ratio, apply greyscale, adjust brightness and quality, rotate, sharpen, and save or overwrite images in just a few lines. Ideal for Laravel and PHP apps. 1,367 1,389 143 4M 0 40.9 56.6 MIT 2 days ago
View on GitHub
Context7
spatie/visit 0.93 Human-friendly curl for the terminal. Visit any URL and display its response with colorized output (HTML via bat, JSON via jq), plus status code and response time. Supports custom HTTP methods and options like following redirects. 390 390 14 2 0 7.5 0.0 — 1 year ago
View on GitHub
spatie/query-string 0.92 Manipulate URLs by building and updating query strings in PHP. Toggle parameters or values, add JSON:API-style filters and sorts, and manage pagination. Useful for generating links and keeping state in apps without manual query parsing. 161 162 9 19K 0 2.0 28.8 MIT 5 years ago
View on GitHub
spatie/once 0.92 A tiny PHP helper to run code only once per request. Cache expensive computations or object initialization in a single spot, keyed automatically by the call site. Great for computed properties, accessors, and avoiding duplicate work. 1,443 1,450 62 328K 0 33.9 38.0 MIT 2 weeks ago
View on GitHub
spatie/value-object 0.92 Deprecated Spatie package for PHP 8+ data transfer objects. Create typed DTOs from arrays with casting, validation, and attribute mapping (e.g., nested keys). Consider migrating to spatie/laravel-data or cuyz/valinor. 2,221 2,223 187 0 0 12.9 — MIT 4 years ago
View on GitHub
spatie/sheets 0.92 Spatie Sheets lets Laravel apps store and retrieve static content from plain text files. Markdown and front matter work out of the box, with flexible parsing, multiple content collections, indexing, and Eloquent-like casting—ideal for docs sites and blogs. 306 307 23 12K 0 17.2 22.9 MIT 8 months ago
View on GitHub
spatie/temporary-directory 0.92 Spatie's PHP package quickly creates, uses, and deletes temporary directories in the system's temp folder. Chainable methods handle custom naming, path helpers, and automatic cleanup of every file inside when the directory is deleted. 972 977 49 8M 0 26.4 60.4 MIT 4 months ago
View on GitHub
Context7
spatie/yaml-front-matter 0.91 Parse YAML front matter from Markdown and similar files. Reads metadata wrapped in --- at the top and returns an object with easy access to fields (via matter() or properties) plus the remaining body content. Ideal for static pages, docs, and blogs. 348 350 30 145K 0 8.8 36.7 MIT 11 months ago
View on GitHub
Context7
spatie/color 0.91 PHP library for color parsing, conversion, and comparison. Supports CSS named colors plus RGB/RGBA/ARGB, Hex, HSL/HSLA, HSB, CMYK, CIELab, and XYZ. Includes WCAG contrast ratio and Delta E distances (CIE76, CIE94, CIEDE2000). 386 390 41 1M 0 16.2 50.7 MIT 8 months ago
View on GitHub
Context7
spatie/html-element 0.91 Generate dynamic HTML in PHP with a hyperscript-style API plus Emmet-like selectors. Build elements and attributes with a simple render helper (often wrapped as el()) to produce nested markup cleanly and programmatically, ideal for small view components. 192 195 23 1K 0 3.5 11.7 MIT 4 years ago
View on GitHub
spatie/string 0.91 spatie/string is a PHP package for fluent, chainable string handling. Wrap any native string with the string() helper, then chain methods like between, toUpper, and toLower, or use array-style offsets to read and modify individual characters easily. 559 570 26 20K 0 19.4 23.4 MIT 6 months ago
View on GitHub
spatie/test-time 0.91 Control time in tests with Spatie TestTime—freeze or advance Carbon-based timestamps dynamically for time-sensitive assertions. Simplify testing date-dependent logic by manually adjusting time without altering real-world clocks. Works seamlessly with Carbon’s methods like addYear(), subDay(), or cus... 208 208 9 246K 0 5.2 42.4 MIT 2 years ago
View on GitHub
spatie/url 0.91 Immutable URL parser/builder for PHP. Parse scheme, host, path and query, then fluently transform parts (withHost, withPath, withScheme) and manage query parameters. Supports allowed/sanitized schemes for safer URL handling. 738 751 59 679K 0 12.5 41.0 MIT 2 years ago
View on GitHub
Context7
spatie/ray 0.91 spatie/ray sends debug output from any PHP app to Ray, Spatie's desktop debugging app. Dump arrays, HTML, queries, and Markdown, measure performance, pause execution, and inspect output with the same syntax you use across Laravel, JavaScript, and more. 624 627 102 2M 0 35.7 55.7 MIT 2 days ago
View on GitHub
spatie/async 0.91 Run PHP tasks in parallel with a simple Pool API built on PCNTL. Add closures, handle results via then/catch, and wait for completion. Ideal for speeding up batch jobs, CPU-heavy work, and IO-bound processing with multiple processes. 2,808 2,823 185 179K 0 33.6 26.4 MIT 8 months ago
View on GitHub
spatie/simple-excel 0.91 Read and write simple Excel and CSV files in Laravel/PHP with low memory usage thanks to generators. SimpleExcelReader and SimpleExcelWriter handle .xlsx and .csv, support LazyCollections for large files, and make row-by-row processing easy. Ideal for importing and exporting large spreadsheets. 1,377 1,382 139 1M 0 39.6 46.9 MIT 2 weeks ago
View on GitHub
Context7
spatie/sun 0.91 Compute sun position times for any coordinates: get sunrise, solar noon (zenith), and sunset as Carbon instances, optionally for a specific date. Simple PHP API from Spatie, ideal for scheduling, dashboards, and daylight-aware features. 75 77 14 8K 0 4.6 28.3 MIT 11 months ago
View on GitHub
spatie/menu 0.90 Fluent, extensible menu builder for Laravel. Compose navigation with a clean API, render as HTML, and customize output via presenters and macros. Supports active state handling, links, submenus, and easy integration with Blade and your app’s routing. 754 763 100 58K 0 15.8 26.2 MIT 1 year ago
View on GitHub
spatie/7to5 0.89 Abandoned. Converts PHP 7.0 code to PHP 5, useful when developing on PHP 7 but deploying to PHP 5. Provides a CLI to convert entire directories and rewrites features like anonymous classes, type hints, return types, and null coalescing. 177 175 32 46 0 2.6 1.0 MIT 8 years ago
View on GitHub
spatie/fractalistic 0.89 Developer-friendly wrapper around League Fractal to transform API data with less boilerplate. Build resources, apply transformers, includes, and output arrays with a fluent API or one-liner syntax. Great for PHP projects; Laravel users may prefer laravel-fractal. 383 385 32 429K 0 17.2 44.3 MIT 8 months ago
View on GitHub
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums
rlacerda83/query-parser
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings