Skip to content

Administration base module for all LUYA admin modules

License

Notifications You must be signed in to change notification settings

luyadev/luya-module-admin

Repository files navigation

LUYA Logo

LUYA Administration Interface module

LUYA Tests Test Coverage Maintainability Latest Stable Version Total Downloads

Administration Interface based on AngularJs, Bootstrap 4 and Yii 2 Framework (which is wrapped in the LUYA CORE).

LUYA Admin Interface

  • CRUD (based on RESTful and Angular)
  • Scaffolding CRUDs
  • Syncing Project between Environments
  • Storage System for Files and Images, also known as File Manager.
  • Permission System with Users and Groups.
  • Searching trough all Modules and Models.

croping

i18n

Installation

For the installation of modules Composer is required.

composer require luyadev/luya-module-admin

Minum PHP Version 7.4 is required for luya-module-admin

Configuration

After installation via Composer include the module to your configuration file within the modules section.

'modules' => [
    // ... 
    'admin' => [
        'class' => 'luya\admin\Module',
    ]
]

Initialization

After successfully installation and configuration run the migrate, import and setup command to initialize the module in your project.

1.) Migrate your database.

./vendor/bin/luya migrate

2.) Import the module and migrations into your LUYA project.

./vendor/bin/luya import

3.) Create admin user and and user groups.

./vendor/bin/luya admin/setup

You can now login to your Administration Interface by adding the admin module in the Url: http://example.com/admin

Developers

If you want to contribute, make sure to read the guidelines.

Unit Testing

  1. cp phpunit.xml.dist phpunit.xml
  2. docker-compose up
  3. docker-compose run luyaadminphpunit tests to run all tests or docker-compose run luyaadminphpunit tests/src/helpers/UrlTest.php to run a specific test.