https://github.com/joomlatools/joomlatools-framework-migrator
A reusable migrator for Joomlatools Framework.
https://github.com/joomlatools/joomlatools-framework-migrator
framework
Last synced: 3 months ago
JSON representation
A reusable migrator for Joomlatools Framework.
- Host: GitHub
- URL: https://github.com/joomlatools/joomlatools-framework-migrator
- Owner: joomlatools
- License: gpl-3.0
- Created: 2016-03-18T09:56:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-06-15T00:18:49.000Z (almost 4 years ago)
- Last Synced: 2024-04-25T23:02:46.755Z (almost 2 years ago)
- Topics: framework
- Language: PHP
- Homepage: https://www.joomlatools.com/developer/framework/
- Size: 110 KB
- Stars: 1
- Watchers: 5
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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](https://getcomposer.org/). 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](CONTRIBUTING.md) to help you get started.
## Authors
See the list of [contributors](https://github.com/joomlatools/joomlatools-framework-migrator/contributors).
## License
The `joomlatools-framework-migrator` component is free and open-source software licensed under the [GPLv3 license](LICENSE.txt).
[Joomlatools Framework]: http://www.joomlatools.com/developer/framework/