yuwuhsien/laravel-bcmath-cast
Laravel Eloquent casts for PHP 8.4's BCMath\Number object, turning model attributes into arbitrary-precision decimals so you can use natural operators like +, -, and * directly while keeping money math exact. Requires PHP 8.4+ and Laravel 12+.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| laravelwebdev/numeric | 0.86 | LaravelWebDev Numeric adds convenient number helpers to Laravel: format, parse, and validate numeric values with a clean, framework-friendly API. Lightweight and easy to install, it keeps common numeric tasks readable and consistent across your app. | 0 | 0 | 0 | 1 | 0 | 1.3 | 7.2 | — | 1 year ago | |
| hnhdigital-os/laravel-model-schema | 0.86 | Laravel Model Schema adds schema introspection to Eloquent models, letting you read column names, types, and related metadata directly from the model. Handy for generating forms, filters, validation rules, and admin scaffolding without querying the database manually. | 12 | 12 | 0 | 0 | 0 | 0.4 | — | MIT | 3 years ago | |
| neuecommerce/model-casts | 0.85 | — | 0 | 0 | 0 | 4K | 0 | 0.0 | 49.3 | MIT | — | |
| roundly-consulting/enums-for-laravel | 0.85 | Enums for Laravel brings first-class PHP enum support to Laravel applications. Cast enum attributes in Eloquent models, validate enum input, and work with backed values across requests and APIs. It keeps code type-safe, readable, and easy to integrate without extra boilerplate. | 5 | 0 | 0 | 3K | 0 | 18.9 | 43.7 | MIT | 3 weeks ago | |
| elegantly/laravel-money | 0.85 | Seamlessly integrate Brick/Money with Laravel using expressive value objects. MoneyCast automatically casts Eloquent attributes to Money, MoneyParser safely converts strings, integers, and floats, and the ValidMoney rule validates input with min/max boundaries and nullable support. | 19 | 19 | 3 | 10K | 0 | 27.2 | 43.6 | MIT | 1 month ago | |
| genealabs/laravel-casts | 0.85 | GeneaLabs Laravel Casts adds flexible custom attribute casting to Eloquent models, making it easy to map database columns to value objects, DTOs, and other PHP classes. Keeps model code clean and cast logic reusable, testable, and simple to configure. | 109 | 95 | 11 | 9K | 0 | 0.8 | 19.2 | MIT | 2 years ago | |
| runn/valueobjects | 0.85 | Runn ValueObjects gives you a lightweight foundation for immutable PHP value objects, with typed base classes for strings, integers, booleans and arrays, validation helpers, and Eloquent casts to keep domain values consistent. | 9 | 9 | 2 | 18 | 1 | 0.3 | 6.2 | LGPL-3.0 | — | |
| rawilk/laravel-casters | 0.85 | Collection of custom Eloquent cast classes for Laravel models. Add handy casts like Name to normalize and manipulate attributes automatically. Install via Composer; full docs available online. | 6 | 6 | 0 | 576 | 0 | 15.4 | 29.2 | MIT | 5 months ago | |
| henriquemattia/moeda-br | 0.85 | A Laravel package for working with Brazilian currency (BRL). Format numbers as R$, parse localized money strings, and convert amounts using simple, reusable helpers. Ideal for e-commerce, invoices, and financial dashboards, it keeps monetary values consistent across your application. | 0 | — | 1 | — | 0 | 0.3 | — | — | 2 years ago | |
| lazerg/laravel-enum-pro | 0.85 | Laravel Enum Pro enhances PHP enums for Laravel with validation rules, Eloquent casts, labels, descriptions, and localization. Build select options and display human-friendly enum values in forms, APIs, and Blade views with less boilerplate. | 43 | — | 2 | — | 1 | 0.4 | — | — | — | |
| jessarcher/laravel-castable-data-transfer-object | 0.85 | A Laravel package that lets Eloquent models cast attributes directly to data transfer objects, keeping structured data typed and clean while handling JSON serialization automatically. Ideal for replacing loose arrays with explicit DTO classes. | 325 | 333 | 22 | 2K | 3 | 1.7 | 8.3 | MIT | 3 years ago | |
| jordanbrauer/unit-converter | 0.85 | A PHP library for converting between units of measurement—length, mass, volume, temperature, speed, area and more—with a clean fluent API, automatic unit resolution, and support for registering custom units. Framework-agnostic with no dependencies. | 0 | 128 | — | 30K | — | 0.0 | 55.3 | — | — | |
| mad-web/laravel-enum | 0.85 | A Laravel package that provides a lightweight enum implementation with model attribute casting, validation rules, translations, and helper methods for working with predefined values throughout your application. | 0 | 110 | — | 6 | — | 0.0 | 11.7 | — | — | |
| cerbero/laravel-dto | 0.85 | Cerbero Laravel DTO provides a simple way to define typed data transfer objects in Laravel, with attribute casting, validation, and conversion from arrays, requests, and Eloquent models. It helps keep controllers and services clean by moving data shaping and validation into reusable DTO classes. | 58 | 59 | 2 | 69 | 0 | 0.4 | 4.7 | MIT | — | |
| genealabs/laravel-two-way-attribute-casting | 0.85 | A Laravel package that enables two-way attribute casting on Eloquent models, letting you transform values both when reading from and writing to the database with custom cast classes. Useful for encapsulating conversion logic in one place for cleaner, reusable model code. | 1 | 1 | 0 | 0 | 0 | 0.2 | — | — | 8 years ago | |
| romanzipp/laravel-dto | 0.85 | A lightweight base class for building Data Transfer Objects in Laravel. Define typed properties, cast nested DTOs and collections, and hydrate from arrays or requests, giving your app predictable, self-validating data objects instead of loose arrays. | 11 | 11 | 2 | 128 | 1 | 0.3 | 14.7 | MIT | — | |
| simplito/bigint-wrapper-php | 0.85 | Lightweight PHP wrapper for working with big integers safely beyond native limits. Provides convenient object-style operations for arithmetic, comparisons, and formatting, helping avoid overflow issues when handling large numeric IDs, counters, or financial values. | 14 | 15 | 7 | 141K | 3 | 1.2 | 55.8 | MIT | — | |
| nolanos/laravel-model-typescript-transfomer | 0.84 | Generates TypeScript definitions for Laravel Eloquent models via spatie/laravel-typescript-transformer. Maps database column types to TypeScript, respects hidden/visible fields, handles nullable columns, and works with php artisan typescript:generate. | 0 | 7 | — | 275 | — | 1.8 | 33.7 | — | — | |
| andydefer/domain-structures | 0.84 | A Laravel/PHP package that provides reusable domain structures and building blocks for domain-driven design. It helps organize business logic, reduce boilerplate, and keep core rules isolated from framework and infrastructure concerns for cleaner, more maintainable applications. | 0 | 0 | 0 | 2K | 0 | 0.0 | 46.3 | MIT | — | |
| jarouche/financial | 0.84 | A Laravel package for financial calculations, offering helpers for interest rates, amortization schedules, loan payments, and present/future value computations. Integrates cleanly with your PHP applications to handle common finance math without external dependencies. | 1 | 1 | 1 | 1K | 0 | 0.0 | 38.0 | MIT | 7 years ago |
How can I help you explore Laravel packages today?