An open API service indexing awesome lists of open source software.

https://github.com/izica/php-html-classnames

php html classnames generator
https://github.com/izica/php-html-classnames

class computed generator html php

Last synced: about 1 year ago
JSON representation

php html classnames generator

Awesome Lists containing this project

README

          

## Install
```
composer require izica/php-html-classnames
```

## Usage

```php

$sClassname = PhpHtmlClassnames::get([
$arParams['CLASS'], //classname from variable
'form-input', //classname from string
'form-input--submit' => $arParams['SUBMIT'] //classname with condition 'name' => true or false
]);
?>

```

or Aliases
```php
classnames();
cn();
```