Recommend this page to a friend! |
![]() |
Info | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 539 | All time: 5,587 This week: 54![]() |
Version | License | PHP version | Categories | |||
simple-css-parser 1.0.0 | BSD License | 5 | HTML, PHP 5, Parsers |
Description | Author | |||
This class can parse CSS stylesheets and edit CSS styles. Innovation Award
|
|
Simple PHP CSS Parser: A Parser to read and alter css contents using PHP or Codeigniter
It is a very simple CSS parser based on PHP, its read CSS file as well as CSS string and make a parsed PHP array.
This class comes with all the functions necessary to make searching, alteration, addition and removal of any thing inside css file or string easily and putting it back everything as a complete css codes to css file dynamically or exporting as a string back to program.
This class is ready to use in your PHP based project as well as Codeigniter v2 or v3 framework. Just initialize the class in PHP core project or load as library into Codeigniter framework.
1) require('Cssparser.php');
2) $css = new Cssparser();
1) put the Cssparser.php file into application/libraries folder of codeigniter.
2) Inside any controller, load it as a normal library
$this->load->library('cssparser');
3) $this->cssparser->read_from_file($folder."/css/custom.css");
![]() |
File | Role | Description |
---|---|---|
![]() |
Class | PHP Class |
![]() ![]() |
Lic. | license |
![]() ![]() |
Doc. | readme |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.