Download the PHP package lemmon/clsx without Composer
On this page you can find all versions of the php package lemmon/clsx. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package clsx
clsx.php
A tiny PHP utility to conditionally build
classattribute strings. Inspired by clsx for JavaScript, it lets you easily compose class names using strings, arrays, and associative arrays.
Installation
Install via Composer:
Usage
API
clsx(...$args): string
Returns a space-separated string of valid class names.
Parameters
...$args: mixed Accepts any number of arguments. Arguments can be:- Strings
- Arrays (flat or nested)
- Associative arrays (keys are class names, values are booleans or strings)
Note: Falsy values like
false,null,0,'', etc. are discarded. Only truthy values or valid strings are included in the final result.
Example
License
MIT © Jakub Pelák
All versions of clsx with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package lemmon/clsx contains the following files
Loading the files please wait ...