PHP Classes
elePHPant
Icontem

CSS Magic: Compose CSS style sheets programatically

Recommend this page to a friend!
  Info   View files Example   View files View files (124)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2016-06-09 (4 months ago) RSS 2.0 feedNot enough user ratingsTotal: 277 This week: 1All time: 7,180 This week: 1,047Up
Version License PHP version Categories
css-magic 1.0.1Custom (specified...7HTML, PHP 7
Description Author

This package can compose CSS style sheets programatically.

The theme class composes style sheets. The selector class defines styles to be added to style sheets. The rule class defines properties to be added to styles.

The theme class assembles all the added styles and returns it as a single string.

Innovation Award
PHP Programming Innovation award nominee
May 2016
Number 11


Prize: One copy of DWebPro Standard License
Usually Web applications use CSS style sheets defined as static files or templates.

However, when your application needs to generate custom CSS that manipulates certain styles and properties, the static CSS approach is not very convenient.

This class provides means to define CSS programmatically by allowing to define style sheets, styles and properties as parameters defined at PHP run time.

Manuel Lemos
Picture of Everton da Rosa
  Performance   Level  
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Files folder imagedoc (1 directory)
Files folder imagesamples (2 files)
Accessible without login Plain text file CSSMagic.geany Data Auxiliary data
Accessible without login Plain text file CSSMagic.php Aux. Auxiliary script
Accessible without login Plain text file Doxyfile Data Auxiliary data
Accessible without login Plain text file LICENCE.pdf Data Auxiliary data
Accessible without login Plain text file LICENCE.txt Lic. License text
Plain text file Rule.php Class Class source
Plain text file Selector.php Class Class source
Plain text file Theme.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:277
This week:1
All time:7,180
This week:1,047Up