Download the PHP package lkk/yii2-inspinia without Composer

On this page you can find all versions of the php package lkk/yii2-inspinia. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-inspinia

Inspinia Admin Theme

v2.7.1

这是一个商业模板,使用前请先购买版权

https://wrapbootstrap.com/theme/inspinia-responsive-admin-theme-WB0R5L90S 真心不贵,只要18美刀,程序猿半天的工资。比免费模板强大多了。

main.php增加

'components' => [
    'view' => [
         'theme' => [
     'pathMap' => [
    '@app/views' => '@vendor/lkk/yii2-inspinia/views'
    ],
        ],
    ],
],

或者 将vendor/lkk/yii2-inspinia/views下的文件,替换自己views下的文件

加载AppAsset

编辑 backend\assets\AppAsset.php

class AppAsset extends AssetBundle
{
    ...
    public $depends = [
        'lkk\inspinia\AppAsset',
    ];
}

views/layouts/sidebar.php的$menu,大体上这样

$controllerName = Yii::$app->controller->id;
$actionName = Yii::$app->controller->action->id;
$moduleName = Yii::$app->controller->module->id;

$menu = [
    [
    'url' => '/home',
        'label' => '首页',
        'icon' => 'fa fa-dashboard',
    ],
    [
        'url' => '/money',
        'label' => '财务管理',
        'icon' => 'fa fa-money',
        'options' => ['class' => $controllerName == 'money' ? 'active' : ''],
    ],
    [
        'url' => '#',
        'label' => '项目管理',
        'icon' => 'fa fa-cubes',
        'items' => [
            [
                'url' => '/project/default',
                'label' => '项目列表',
                'options' => ['class' => $controllerName == 'default' && $moduleName == 'project' ? 'active' : ''],
            ],
            [
                'url' => '/project/create',
                'label' => '新增项目',
                'options' => ['class' => $controllerName == 'create' && $moduleName == 'project' ? 'active' : ''],
            ],
        ],
        'options' => ['class' => $moduleName == 'project' ? 'active' : ''],
    ],
]

如指定页面error使用layouts/empty,方法如下

public function beforeAction($action)
{
    if (parent::beforeAction($action)) {
        if ($action->id=='error')
    $this->layout ='empty';
        return true;
    } else {
        return false;
    }
}

inspinia Panel使用

toolbar参数

'toolbar'=>[
        [
    'title' => '',
    'link'  => Url::to(['/']),
    'icon'  => 'wrench',
    'items' => [
    [
        'title' => 'Item 1',
        'link'  => Url::to(['/']),
        'icon'  => 'earth',
    ],
    [
        'title' => 'Item 2',
        'link'  => Url::to(['/']),
        'icon'  => 'pencil',
    ],
    ],
        ],
        [
    'title' => 'QQ',
    'link'  => Url::to(['http://qq.com']),
    'icon'  => 'qq',
        ]
    ]

All versions of yii2-inspinia with dependencies

PHP Build Version
Package Version
Requires yiisoft/yii2 Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lkk/yii2-inspinia contains the following files

Loading the files please wait ....