2017 © Pedro PelĂĄez
 

library joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

image

vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  • Tuesday, June 28, 2016
  • by vikijel
  • Repository
  • 1 Watchers
  • 2 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 22 Versions
  • 0 % Grown

The README.md

Joomla! Extensions Packager

PHP Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS, (*1)

Build Status, (*2)

About

Features

  • Packs given extensions, languages, scriptfile etc. together with auto-generated install xml manifest into a ZIP archive ready for installation into Joomla! CMS
  • Created install packages are:
    • Compatible with Joomla! 2.5 and newer (Xml manifest has <extension> root element)
    • Native extension installation packages of type 'package'

Requirements

Installation via Composer

Run this command inside your project directory (Your project dir is later referred to as repository):, (*3)

composer require vikijel/joomla-extensions-packager

You need to have Composer installed for above command to work, (*4)

Inclusion to project

  • If you are using Composer in your project, the vendor/autoload.php should be already required in your project
  • repository = your project directory (where you ran composer require)
require_once '/path/to/repository/vendor/autoload.php'; 

Usage - Basic

use VikiJel\JoomlaExtensionsPackager\Package;

try
{
    $path = Package::create('Something All-In-One')
                   ->addExtension('com_test', '../tests/data/some_file.zip')
                   ->addExtension('mod_test', '../tests/data/some_file.zip', 'module', 'site')
                   ->addExtension('plg_system_test', '../tests/data/some_file.zip', 'plugin', null, 'system')
                   ->pack();

    echo 'Path to created package is ' . $path; 
    //Outputs: Path to created package is: /path/to/repository/out/pkg_something_all_in_one-1.0.0.zip
}
catch (Exception $e)
{
    die('Failed to create package, error: ' . $e->getMessage());
}

Usage - Advanced

use VikiJel\JoomlaExtensionsPackager\Package;
use VikiJel\JoomlaExtensionsPackager\Extension;

try
{
    $path = Package::create('Something Else All-in-one')
                   ->setAuthor('Your Name', 'your.email@example.com', 'http://your.domain.example.com')
                   ->setVersion('1.2.3')
                   ->setDescription('This is something else...')
                   ->setLicense('GPL')
                   ->setCreationDate('2016-05-21')
                   ->setMinJoomlaVersion('2.5')
                   ->setUrl('http://url.com')
                   ->setScriptfile('../tests/data/some_file.php')
                   ->addExtension('com_test', '../tests/data/some_file.zip')
                   ->addExtension('mod_test', '../tests/data/some_file.zip', 'module', 'site')
                   ->addExtensionInstance(
                       Extension::create('plg_system_test', '../tests/data/some_file.zip')
                                ->setType('plugin')
                                ->setGroup('system')
                   )
                   ->addExtension('tpl_test', '../tests/data/some_file.zip', 'template', 'admin')
                   ->addExtension('lib_test', '../tests/data/some_file.zip', 'library')
                   ->addExtension('lng_test', '../tests/data/some_file.zip', 'language', 'site')
                   ->addExtensionInstance(
                       Extension::create('file_test', '../tests/data/some_file.zip', 'file')
                   )
                   ->addLanguage('../tests/data/some_file.ini', 'cs-CZ')
                   ->addUpdateServer('http://updates1.example.com', 'My update server 1')
                   ->addUpdateServer('http://updates2.example.com', 'My update server 2', 'collection', 2)
                   ->pack('../out/custom', 'pkg_overridden_name.zip');

    echo 'Path to created package is ' . $path;
    //Outputs: Path to created package is /path/to/repository/out/custom/pkg_overridden_name.zip
}
catch (Exception $e)
{
    die('Failed to create package, error: ' . $e->getMessage());
}

This library is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla!Âź name and logo is used under a limited license granted by Open Source Matters, the trademark holder in the United States and other countries., (*5)

The Versions

28/06 2016

dev-master

9999999-dev https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

28/06 2016

dev-devel

dev-devel https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

28/06 2016

1.3.1

1.3.1.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

25/05 2016

1.3.0

1.3.0.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

25/05 2016

1.2.0

1.2.0.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

25/05 2016

1.1.2

1.1.2.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

24/05 2016

1.1.1

1.1.1.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

24/05 2016

1.1.0

1.1.0.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

24/05 2016

1.0.2

1.0.2.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

23/05 2016

1.0.1

1.0.1.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

22/05 2016

1.0.0

1.0.0.0 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

22/05 2016

1.0.0-rc5

1.0.0.0-RC5 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

22/05 2016

1.0.0-rc4

1.0.0.0-RC4 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

22/05 2016

1.0.0-rc3

1.0.0.0-RC3 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

22/05 2016

1.0.0-rc2

1.0.0.0-RC2 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

21/05 2016

1.0.0-rc1

1.0.0.0-RC1 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

21/05 2016

1.0.0-beta3

1.0.0.0-beta3 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

21/05 2016

1.0.0-beta2

1.0.0.0-beta2 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

21/05 2016

1.0.0-beta

1.0.0.0-beta https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

21/05 2016

1.0.0-alpha3

1.0.0.0-alpha3 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

21/05 2016

1.0.0-alpha2

1.0.0.0-alpha2 https://github.com/vikijel/joomla-extensions-packager

Library for generating All-In-One install packages (*.zip) with multiple extensions for Joomla! CMS

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

20/05 2016

1.0.0-alpha

1.0.0.0-alpha https://github.com/vikijel/joomla-extensions-packager

Library for generating all-in-one install packages with multiple Joomla! extensions —

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires