krypton / styles
A style class in PHP
Installs: 1
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/krypton/styles
Requires
- php: >=8.0.0
This package is auto-updated.
Last update: 2025-12-29 04:07:45 UTC
README
The PHP Styles Class allows you to print styles.
How to install?
composer require krypton/styles
How to use?
A simple example ...
<?php use Krypton\Styles\Styles; $css = [ [ 'names' => [ '.red' ], 'attrs' => [ 'color' => '#F00' ] ], [ 'names' => [ '.blue' ], 'attrs' => [ 'color' => '#F0F' ] ], [ 'names' => [ '.grey' ], 'attrs' => [ 'color' => '#999' ] ], [ 'names' => [ '.green' ], 'attrs' => [ 'color' => '#0F0' ] ] ]; $styles = new Styles($css); echo $styles->render();
License
This class is provided under GPL license http://www.gnu.org/licenses/gpl.html