2017 © Pedro Peláez
 

library inlinecss

PHP Stylesheet Generator

image

undercloud/inlinecss

PHP Stylesheet Generator

  • Saturday, April 9, 2016
  • by undercloud
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

inlinecss

Inline CSS Generator, (*1)

Install

composer require undercloud/inlinecss, (*2)

Basic example

require 'vendor/autoload.php';

$css = new \Undercloud\InlineCss;

$css->color      = '#282828';
$css->lineHeight = 1.5;
$css->fontSize   = '36px';

echo '

Hello I\'m inline CSS

';

or, (*3)

echo '<style>' . $css('h1') . '</style>';

Predefined properties

$css = new \Undercloud\InlineCss(
    array(
        'textAlign' => 'left',
        'display'   => 'inline-block',
        'position'  => 'relative'
    )
);

Values

For adding values use object assign, (*4)

$css->color = '#282828';

or use function add, (*5)

$css->add('color', '#282828');

The Versions

09/04 2016

dev-master

9999999-dev https://github.com/undercloud/inlinecss

PHP Stylesheet Generator

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

by Avatar undercloud

css style stylesheet