Download the PHP package zicht/classes without Composer
On this page you can find all versions of the php package zicht/classes. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zicht/classes
More information about zicht/classes
Files in zicht/classes
Download zicht/classes
More information about zicht/classes
Files in zicht/classes
Vendor zicht
Package classes
Short Description PHP utility for conditionally joining CSS classes.
License MIT
Package classes
Short Description PHP utility for conditionally joining CSS classes.
License MIT
Please rate this library. Is it a good library?
Informations about the package classes
classes
Utility function for conditionally joining CSS classes.
Installing
Purpose
When building a component (or any piece of HTML, really), it's quite common to render or not render certain CSS classes based on certain variables. If you manually concatenate the class names, it quickly becomes a mess of if
/ else
or ternary operators. This function helps to keep it readable.
Usage
Credits
This function was created because the JS equivalent classnames was nice to use in React.
Maintainer
All versions of classes with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2 || ^8.0
The package zicht/classes contains the following files
Loading the files please wait ....