adilab / css
Adi CSS Tools for PHP
Installs: 63
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/adilab/css
This package is not auto-updated.
Last update: 2025-10-04 01:29:53 UTC
README
Adi CSS Tools for PHP is a very intuitive tool for prepare CSS strings directly in PHP code.
Installing
Preferred way to install is with Composer.
Install this library using composer:
$ composer require adilab/css
Usage:
Usage of Css class. Online demo.
require('vendor/autoload.php'); use Adi\Css\Css; $css = new Css('display: inline-block;margin-right: 10px;min-width: 150px;'); $css->set('width: 20px'); $css->set('color', '#ff0000')->set('background-color: #ccc'); echo "<div style='{$css}'>Hello world</div>";