Themey-Gen
This is a theme generator and integrator for Yii2 framework applications. It can
generate files and classes required to seamless integrate an HTML template with the
Yii2 Application., (*1)
, (*2)
Installation
The preferred way to install this tool through composer., (*3)
Either run, (*4)
composer require coreit/themey-gen
or add, (*5)
"coreit/themey-gen" : "*"
to the require section of your application's composer.json
file., (*6)
Usage
The tool is accessible through terminal, to access it globally you can add /bin
into your $PATH
You can then run it in command line using themey
To generate Yii application structure you can run themey generate:app
To generate a theme template run themey:generate:theme -t theme-name -p path-to-the-theme
To generate a layout run themey:generate:layout -t theme-name -l layout-name
For more commands and help run themey --help
, (*7)
Before running the command the current directory should be that of the required application either frontend
or backend
for the
advanced Yii2 template or root directory of the basic template., (*8)
Contributing
Themey-Gen is an open source project, you can fork the project and submit pull requests., (*9)
Resources
Credits
-
Symphony\Console
is a PHP Console application framework. Find sources and license at https://github.com/symfony/symfony
-
paquettg/php-html-parser
An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.
you can find it at https://github.com/paquettg/php-html-parser
License
The MIT License (MIT). Please see License File for more information., (*10)