Dragonfly CMS v10.0.28 now has a Package Manager.
It is fully working, and it should allow easy installing of: modules, themes, languages, etc.
To create your own package you can use the following script:
<?php
ini_set('display_errors', 1);
$dir = __DIR__ . '/' . $argv[1];
if (Phar::canWrite()) {
@unlink("{$dir}.tgz");
$p = new PharData("{$dir}.tar");
$p = $p->compress(Phar::GZ, '.tgz');
$p->buildFromDirectory($dir);
$manifest = "{$dir}/package.xml";
if (is_file($manifest)) {
unset($p['package.xml']);
$p->setMetadata(array('package' => file_get_contents($manifest)));
}
echo "Package created\n";
} else {
echo "Cannot create package\n";
}
When your package is at /path/to/mypackage
save it as: /path/to/create-package.php
Then run it from your command line:
$ php /path/to/create-package.php mypackage
Repositories
You can also add your own repository at: Admin -> Package Manager -> Settings
At writing ours is at "https: //dragonflycms.org/downloads/v10/"
The manager then downloads/uses:
/downloads/v10/packages.xml
More info soon!