PHPackages                             luyadev/luya-module-exporter - 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. [Database &amp; ORM](/categories/database)
4. /
5. luyadev/luya-module-exporter

AbandonedArchivedProject[Database &amp; ORM](/categories/database)

luyadev/luya-module-exporter
============================

The exporter module allows you to easy download the full databse and storage data from a project to import them local.

1.0.0-RC4(8y ago)09832MITPHP

Since Feb 9Pushed 8y ago1 watchersCompare

[ Source](https://github.com/luyadev/luya-module-exporter)[ Packagist](https://packagist.org/packages/luyadev/luya-module-exporter)[ Docs](http://luya.io)[ RSS](/packages/luyadev-luya-module-exporter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (9)Used By (0)

LUYA EXPORTER MODULE
====================

[](#luya-exporter-module)

> This module will not recieve any updates in future and will not release in a stable version as its not recomend to use, use the luya admin proxy instead!

> How to use luya proxy instead:

The exporter module allowss you to easily download the full database and storage data from a project for a local import and thus, to setup a state of a website at a given time.

### Installation

[](#installation)

Add the exporter module to your composer.json:

```
"luyadev/luya-module-exporter" : "1.0.0-RC4",

```

Set up you your application configuration as follows :

```
'modules' => [
    // ...
    'exporter' => [
        'class' => 'luya\exporter\Module',
        'downloadPassword' => 'EnterYourSecureRandomToken',
    ],
]

```

And finally run the `./vendor/bin/luya migrate` and `./vendor/bin/luya import` commands.

### Using the exporter module

[](#using-the-exporter-module)

Now you can install a cronjob or run the command when doing deployment to prepare the download:

```
./vendor/bin/luya exporter/export
```

In order to download the above created files, just go into:

 and your zip will be downloaded.

> Attention! HTTP sniffers can read your plain token.

Importing from a remote host
----------------------------

[](#importing-from-a-remote-host)

To import a database from a remote host, you can use this command:

```
./vendor/bin/luya exporter/database/remote-replace-local "mysql:host=localhost;dbname=REMOTE_DB_NAME" "USERNAME" "PASSWORD"
```

> Attention! This command will drop all tables in your current database and replace them with the remote export.

To use this in a context where you aren't able to process user inputs (chained remote batch processing like in a deployer task) you can disable the security confirmation by adding the parameter `--interactive=0`. Obviously, this should be used with extreme caution to prevent any unwanted data losses.

> For your safety there will be an automatically created database backup of the local db. The backup can be found in the local temporary system directory - the file name resembles like this: `uniqid() . '-BACKUP-'.time()`

#### Using exporter as a deployer task

[](#using-exporter-as-a-deployer-task)

When using the LUYA deployer you may want to add the remote replace local command as a task and execute them when deploying the prep environment, here an example of what this could look like, you will find more information in the luya deployer docs:

```
task('deploy:importProdDb', function() {
    cd('{{release_path}}');
    run('./vendor/bin/luya exporter/database/remote-replace-local "mysql:host=localhost;dbname=prod_database" "USER" "PASSWORD" --interactive=0');
})->onlyOn('prep');

after('deploy:luya', 'deploy:importProdDb');
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~82 days

Recently: every ~100 days

Total

8

Last Release

3219d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86184bf08843ed8fcc4aedb2fdecd8a9e832e47e89a7166cebfda529c176f5ce?d=identicon)[nadar](/maintainers/nadar)

---

Top Contributors

[![nadar](https://avatars.githubusercontent.com/u/3417221?v=4)](https://github.com/nadar "nadar (46 commits)")[![martinpetrasch](https://avatars.githubusercontent.com/u/6354795?v=4)](https://github.com/martinpetrasch "martinpetrasch (2 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (1 commits)")

---

Tags

phpdevexportsqlstorageyii2moduleyiidownloadluyaluya-modulepreproduction

### Embed Badge

![Health badge](/badges/luyadev-luya-module-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/luyadev-luya-module-exporter/health.svg)](https://phpackages.com/packages/luyadev-luya-module-exporter)
```

###  Alternatives

[luyadev/luya-module-cms

The LUYA CMS module provides a full functional Content Management System for adding contents based on blocks.

32178.4k18](/packages/luyadev-luya-module-cms)[luyadev/luya-bootstrap4

Bootstrap4 Assets and Helper classes like ActiveForm for LUYA and Yii2.

1844.6k3](/packages/luyadev-luya-bootstrap4)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
