coreit / themey-gen
Theme generator for yii2
Requires
- paquettg/php-html-parser: ^1.7
- symfony/console: ^3.2
Requires (Dev)
- codeception/codeception: ^2.2
This package is not auto-updated.
Last update: 2024-11-23 20:53:35 UTC
README
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.
Installation
The preferred way to install this tool through composer.
Either run
composer require coreit/themey-gen
or add
"coreit/themey-gen" : "*"
to the require section of your application's composer.json
file.
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
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.
Contributing
Themey-Gen is an open source project, you can fork the project and submit pull requests.
Resources
- Report issues and send Pull Requests in the main Themey-Gen repo
Credits
Symphony\Console
is a PHP Console application framework. Find sources and license at https://github.com/symfony/symfonypaquettg/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.