PHPackages                             desmart/support - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. desmart/support

ActiveLibrary

desmart/support
===============

Support package for DeSmart projects

1.1.2(10y ago)05.8k[1 issues](https://github.com/DeSmart/support/issues)PHP

Since Apr 25Pushed 10y ago4 watchersCompare

[ Source](https://github.com/DeSmart/support)[ Packagist](https://packagist.org/packages/desmart/support)[ RSS](/packages/desmart-support/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Installation
============

[](#installation)

Add `desmart/support` to `composer.json`:

```
{
  "require": {
    "desmart/support": "1.0.*"
  }
}
```

Helpers
=======

[](#helpers)

bool()
------

[](#bool)

Converts string to boolean values using `filter_var()` with `FILTER_VALIDATE_BOOLEAN`.
When `filter_var()` is unable to convert it to boolean exception will be thrown.

Example usage:

```
