A reusable migrator for Joomlatools Framework.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
controller
dispatcher
migrator #5: Turn foreign check keys off during migration Jan 4, 2017
resources/assets
version
views
CONTRIBUTING.md
LICENSE.txt
README.md
composer.json

README.md

Migrator Component for Joomlatools Framework

This is a re-usable component for exporting and importing extension data for Joomlatools Framework.

Requirements

  • Joomlatools Framework 3
  • PHP 5.4 or newer
  • MySQL 5

Installation

Install using Composer. Go to the root directory of your Joomla installation in command line and execute this command:

composer require joomlatools/framework-migrator:1.*

The component will be installed in the vendor folder of the root directory of your Joomla site. The composer installer will make sure that the component is bootstrapped from that location and made available to other components extending it or just making use of it.

How to use

Include the behavior in your extension's dispatcher:

class ComFooDispatcherHttp extends ComKoowaDispatcherHttp
{
    protected function _initialize(KObjectConfig $config)
    {
        $config->append(array(
            'behaviors'  => array(
                'com:migrator.dispatcher.behavior.migratable'
            )
        ));

		parent::_initialize($config);
    }
}

This will pick the migrators from the following identifiers by default:

com://admin/foo.migrator.export
com://admin/foo.migrator.import

Alternatively you can specify different identifiers in the behavior configuration.

Then navigate to view=export or view=import in your extension to perform migrations.

Contributing

This component is an open source, community-driven project. Contributions are welcome from everyone. We have contributing guidelines to help you get started.

Authors

See the list of contributors.

License

The joomlatools-framework-migrator component is free and open-source software licensed under the GPLv3 license.