New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

adilab/css

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adilab/css

Adi CSS Tools for PHP

Source
Packagist
Version
v1.0.0
Version published
Total downloads
63
Maintainers
1
Created
Source

Adi CSS Tools for PHP

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>";

Documentation

API documentacion

FAQs

Package last updated on 16 Apr 2016

Related posts