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
- Host: GitHub
- URL: https://github.com/izica/php-html-classnames
- Owner: izica
- License: mit
- Created: 2018-06-10T08:55:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-09T01:05:01.000Z (about 3 years ago)
- Last Synced: 2025-05-08T16:06:07.653Z (about 1 year ago)
- Topics: class, computed, generator, html, php
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
```