PHPackages                             lyrasoft/melo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. lyrasoft/melo

ActiveWindwalker-package

lyrasoft/melo
=============

LYRASOFT melo package

0.1.18(1y ago)0538↓50%[4 issues](https://github.com/lyrasoft/luna-melo/issues)MITPHP

Since Feb 4Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/lyrasoft/luna-melo)[ Packagist](https://packagist.org/packages/lyrasoft/melo)[ RSS](/packages/lyrasoft-melo/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (21)Used By (0)

LYRASOFT Melo Package
=====================

[](#lyrasoft-melo-package)

- [Installation](#installation)
    - [Seeders](#seeders)
    - [Global Settings](#global-settings)
    - [Session](#session)
    - [Favorites Type](#favorites-type)
    - [Language Files](#language-files)
    - [CSS/JS](#cssjs)
    - [Add Cart Button](#add-cart-button)
- [Register Admin Menu](#register-admin-menu)
- [Frontend Available Routes](#frontend-available-routes)

Installation
------------

[](#installation)

Install from composer

```
composer require lyrasoft/melo
```

melo dependents on [lyrasoft/sequence](https://github.com/lyrasoft/luna-sequence) and [lyrasoft/favorite](https://github.com/lyrasoft/luna-favorite) packages. Please read their README and configure them first.

Then copy files to project

```
php windwalker pkg:install lyrasoft/melo -t routes -t migrations -t seeders
php windwalker pkg:install lyrasoft/favorite -t routes -t migrations
php windwalker pkg:install lyrasoft/attachment -t migrations
```

### Seeders

[](#seeders)

Add these files to `resources/seeders/main.php`

```
return [
    // ...

    __DIR__ . '/lesson-seeder.php',
    __DIR__ . '/order-seeder.php',
    __DIR__ . '/segment-seeder.php',
    __DIR__ . '/question-seeder.php',
    __DIR__ . '/option-seeder.php',
];
```

Add these types to `category-seeder.php`

```
    static function () use ($seeder, $orm, $db) {
        $types = [
            // ...

            'lesson' => [
                'max_level' => 3,
                'number' => 30,
            ]
        ];
```

### Global Settings

[](#global-settings)

Open `/etc/packages/melo.php`, you can configure there settings:

```
