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.
Download t-labs-co/booleanize
More information about t-labs-co/booleanize
Files in t-labs-co/booleanize
Package booleanize
Short Description Tools for easier boolean manipulation.
License MIT
Homepage https://github.com/t-labs-co/booleanize
Informations about the package booleanize
Helper to work with Boolean in less pain way
This package helps you deal with Boolean value in your laravel project, support action cast model attribute, check value is true/false, convert to your desire boolean form. It's super handy for keeping things clean and avoiding copy-paste, so you can grab what you need quickly and cut down on extra coding.
Work with us
We're PHP and Laravel whizzes, and we'd love to work with you! We can:
- Design the perfect fit solution for your app.
- Make your code cleaner and faster.
- Refactoring and Optimize performance.
- Ensure Laravel best practices are followed.
- Provide expert Laravel support.
- Review code and Quality Assurance.
- Offer team and project leadership.
- Delivery Manager
PHP and Laravel Version Support
This package supports the following versions of PHP and Laravel:
- PHP:
^8.2 - Laravel:
^11.0,^12.0
Installation
You can install the package via composer:
You can publish the config file with:
This is the contents of the published config file:
Feature
- Check input value is
trueorfalse - Convert input value to desired Boolean form
- Cast model attribute to correct value
- Query boolean field
- Validate rule for boolean field
Usage
Convert to bool with helper
Using in Model class
Using in validate
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- T.Labs & Co.
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of booleanize with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0