wdmg/yii2-services

System Service Manager

Installs: 499

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 4

Forks: 2

Open Issues: 0

Type:yii2-extension

2.0.0 2023-06-25 18:59 UTC

This package is auto-updated.

Last update: 2024-10-25 21:53:17 UTC


README

Yii2 Downloads Packagist Version Progress GitHub license

Yii2 Services Module

Yii2 Services Module

System Service Manager for Yii2.

This module is an integral part of the Butterfly.СMS content management system, but can also be used as an standalone extension.

Copyrights (c) 2019-2021 W.D.M.Group, Ukraine

Requirements

Installation

To install the module, run the following command in the console:

$ composer require "wdmg/yii2-services"

After configure db connection, run the following command in the console:

$ php yii services/init

And select the operation you want to perform:

  1. Restore directory rights
  2. Clear runtime cache
  3. Clear web cache
  4. Clear the all system cache

Configure

To add a module to the project, add the following data in your configuration file:

'modules' => [
    ...
    'services' => [
        'class' => 'wdmg\services\Module',
        'routePrefix' => 'admin'
    ],
    ...
],

Routing

Use the Module::dashboardNavItems() method of the module to generate a navigation items list for NavBar, like this:

<?php
    echo Nav::widget([
    'options' => ['class' => 'navbar-nav navbar-right'],
        'label' => 'Modules',
        'items' => [
            Yii::$app->getModule('services')->dashboardNavItems(),
            ...
        ]
    ]);
?>

Status and version [ready to use]

  • v.2.0.0 - Update copyrights, fix nav menu
  • v.1.1.12 - Update dependencies, README.md
  • v.1.1.11 - Update README.md and dependencies