Download the PHP package t-labs-co/booleanize without Composer
On this page you can find all versions of the php package t-labs-co/booleanize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download t-labs-co/booleanize
More information about t-labs-co/booleanize
Files in t-labs-co/booleanize
Download t-labs-co/booleanize
More information about t-labs-co/booleanize
Files in t-labs-co/booleanize
Vendor t-labs-co
Package booleanize
Short Description Config-driven boolean conversion utility for Laravel — convert yes/no, on/off, enabled/disabled, and custom truthy/falsy values to booleans, with validation rules, Eloquent casts, model query scopes, and a helper function.
License MIT
Homepage https://github.com/t-labs-co/booleanize
Package booleanize
Short Description Config-driven boolean conversion utility for Laravel — convert yes/no, on/off, enabled/disabled, and custom truthy/falsy values to booleans, with validation rules, Eloquent casts, model query scopes, and a helper function.
License MIT
Homepage https://github.com/t-labs-co/booleanize
Please rate this library. Is it a good library?
Informations about the package booleanize
Booleanize
Tools for easier boolean manipulation in Laravel.
Requirements
- PHP ^8.4
- Laravel ^12|^13
Installation
Upgrading from v1.x? Read the Migration Guide for a step-by-step upgrade path.
Usage
Basic Conversion
Helper Function
Truthy Values
The following values are recognized as true:
| Value | Type |
|---|---|
y |
string |
yes |
string |
active |
string |
enable |
string |
on |
string |
1 |
string |
true |
string |
good |
string |
ok |
string |
1 |
integer |
true |
boolean |
Falsy Values
The following values are recognized as false:
| Value | Type |
|---|---|
n |
string |
no |
string |
inactive |
string |
disable |
string |
off |
string |
0 |
string |
false |
string |
bad |
string |
not_ok |
string |
0 |
integer |
false |
boolean |
Validation Rules
Eloquent Casts
Model Trait
Custom Values
Inverse Conversion
Human Readable
Configuration
Publish the config file:
Quality
Credits
- Ty Huynh
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of booleanize with dependencies
PHP Build Version
Package Version
The package t-labs-co/booleanize contains the following files
Loading the files please wait ...