spatie/or-else
Adds an OrElse trait that auto-creates “*OrElse” method variants for your class methods. These variants accept a fallback value that’s returned whenever the original method returns null or false, helping you avoid repetitive default-handling code.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| spatie/once | 0.83 | 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,438 | 1,444 | 61 | 264K | 0 | 24.2 | 33.9 | MIT | 6 months ago | |
| spatie/string | 0.83 | Fluent string handling for PHP. Wrap strings with string() to get a chainable object with helpers like between(), case conversion, concatenation, and array-offset access for reading/updating characters. Lightweight utility by Spatie, installable via Composer. | 560 | 571 | 26 | 20K | 0 | 28.2 | 25.1 | MIT | 1 month ago | |
| spatie/html-element | 0.82 | 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. | 191 | 194 | 24 | 2K | 0 | 3.5 | 13.6 | MIT | 4 years ago | |
| spatie/sun | 0.81 | 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. | 73 | 75 | 14 | 5K | 0 | 13.0 | 27.8 | MIT | 6 months ago | |
| spatie/url | 0.80 | 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. | 739 | 752 | 60 | 413K | 0 | 12.4 | 37.9 | MIT | 2 years ago | |
| spatie/schema-org | 0.80 | Fluent PHP builder for the full Schema.org vocabulary. Create Schema.org types and properties via chainable methods and output valid JSON-LD/ld+json scripts for SEO. Auto-generated from Schema.org standards for complete coverage. | 1,490 | 1,510 | 144 | 309K | 1 | 39.5 | 37.0 | MIT | 1 month ago | |
| jenssegers/model | 0.79 | — | 396 | 397 | 56 | 53K | 17 | 14.1 | 35.9 | — | 1 year ago | |
| imanghafoori/laravel-nullable | 0.79 | — | 151 | 151 | 10 | 19K | 2 | 3.1 | 29.4 | MIT | 1 year ago | |
| crudly/testly | 0.78 | A simple test package placeholder for crudly/testly. Currently contains minimal scaffolding and documentation (“This is a test”) and may be used for experimentation or as a starting point for future CRUD-related tooling. | 0 | 0 | 0 | 0 | 0 | 0.3 | — | MIT | 6 years ago | |
| spatie/laravel-or-abort | 0.78 | Adds an OrAbort trait to Laravel models to abort with a chosen HTTP status when common calls fail (e.g., findOrAbort($id, 500) instead of returning null/false). Note: this package is no longer maintained. | 53 | 54 | 2 | 5 | 0 | 0.8 | — | MIT | 10 years ago | |
| symplify/amnesia | 0.78 | Provides PHP constant wrappers for Symfony configuration keys to replace typo-prone strings in PHP config files. Covers common extensions like Framework, Twig, Doctrine and Routing, making config safer, more discoverable, and easier to refactor. | 15 | 17 | 0 | 127 | 0 | 0.0 | 8.7 | MIT | — | |
| camspiers/json-pretty | 0.77 | Pretty-print JSON in PHP 5.3. camspiers/json-pretty provides a simple JsonPretty class with a prettify() method to format arrays/JSON into readable, indented output. Install via Composer and use in a few lines. | 22 | 23 | 8 | 6K | 1 | 0.7 | 23.6 | MIT | 10 years ago | |
| doctrine/doctrine1 | 0.77 | Legacy Doctrine 1 ORM for PHP, providing ActiveRecord and Data Mapper features with a SQL abstraction layer, migrations, schema tools, and powerful query building. Useful for maintaining older Doctrine 1 applications or studying the classic ORM API. | 132 | 139 | 218 | 76 | 0 | 3.6 | 1.9 | LGPL-2.1 | — | |
| alterphp/developer-bundle | 0.77 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | — | — | |
| baks-dev/delivery-transport | 0.77 | Модуль управления парком автомобилей для доставки заказов. Поддерживает установку через Composer, установку ресурсов (baks:assets:install), обновление схемы БД через миграции Doctrine и тестирование PHPUnit (group=delivery-transport). | 0 | — | 4 | — | 0 | 20.0 | — | MIT | 3 weeks ago | |
| axstrad/use-case-test-bundle | 0.77 | — | 0 | 0 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| byscripts/manager-bundle | 0.77 | — | 0 | 0 | 0 | 0 | 0 | 1.8 | — | — | 12 years ago | |
| appsco/component-firi | 0.77 | — | 0 | 0 | 2 | 0 | 0 | 0.7 | — | — | 7 years ago | |
| alexeyshockov/colada-x | 0.77 | colada-x is a tiny Laravel/PHP helper package by alexeyshockov. Lightweight and experimental, it offers small utilities you can drop into a project quickly. Best for tinkerers who don’t mind minimal docs, few stars, and a still-maturing API. | 1 | 1 | 1 | 0 | 0 | 0.0 | — | — | — | |
| lastdragon-ru/lara-asp-eloquent | 0.77 | — | 1 | 1 | 0 | 5K | 0 | 0.0 | 46.4 | MIT | — |
How can I help you explore Laravel packages today?