Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anovsiradj/yii2-theme-mazer
Mazer for Yii2
https://github.com/anovsiradj/yii2-theme-mazer
php theme yii2 yii2-theme
Last synced: 4 months ago
JSON representation
Mazer for Yii2
- Host: GitHub
- URL: https://github.com/anovsiradj/yii2-theme-mazer
- Owner: anovsiradj
- Created: 2023-03-06T08:17:01.000Z (almost 2 years ago)
- Default Branch: dev
- Last Pushed: 2024-01-11T02:37:53.000Z (about 1 year ago)
- Last Synced: 2024-09-30T22:19:50.713Z (4 months ago)
- Topics: php, theme, yii2, yii2-theme
- Language: PHP
- Homepage: https://zuramai.github.io/mazer/
- Size: 2.54 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Yii2 Theme Mazer
-
-### dependencies
```
php: >=7
yii2: *
yii2-bootstrap5: *
```### usages
this theme has 2 layout options,
`mainx` (horizontal) and `mainy` (vertical).```php
'layout' => 'mainy', // or 'mainx'
'components' => [
'assetManager' => [
'forceCopy' => !YII_ENV_PROD,
'linkAssets' => true,
'appendTimestamp' => true,
],
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => [
'@app/views',
'@vendor/anovsiradj/yii2-theme-mazer/views',
],
],
],
],
],
```by default it is using dark theme, to use light theme only do this:
```php
'assetManager' => [
'bundles' => [
\yii2\theme\mazer\MainAsset::class => [
'css' => [
'app.min.css',
],
],
],
],
```to override views, copy and paste (copas) file from `./vendor/anovsiradj/yii2-theme-mazer/views` to `./views/`.
for example, override `main_sidebar.php`.
copas from `./vendor/anovsiradj/yii2-theme-mazer/views/main_sidebar.php` to `./views/main_sidebar.php`.### developments
```sh
# clone this repo
git clone ...# create fresh yii2-app-basic for testing
composer create-project --prefer-dist yiisoft/yii2-app-basiccd yii2-theme-mazer
npm install
# npm update --save-dev --dev# must in this order, cause webpack-mix is broken.
npm run prod
npm run test# create a release
git tag 1.0.0
git push origin dev
git push --tags
```add this to `./config/web.php`:
```php
[
'controllerMap' => [
'mazer' => \yii2\theme\mazer\TestController::class,
],
]
```add this to `./composer.json`:
```
"repositories": [
{
"type": "path",
"url": "../yii2-theme-mazer",
"options": {
"symlink": true
}
}
]
```then visit `localhost/yii2-app-basic/mazer/index`