2017 © Pedro Peláez
 

composer-plugin installer

Installer for OpenPSA components and projects

image

openpsa/installer

Installer for OpenPSA components and projects

  • Monday, October 16, 2017
  • by flack
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14,718 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 3 % Grown

The README.md

OpenPSA Installer

Installation and setup tools for OpenPSA/MidCOM packages and projects., (*1)

Composer Support

Due to the logic of Composer, this basically consists of two parts, a custom installer, that is to say, an implementation of Composer\Installer\InstallerInterface which is used for packages installed in the vendor directory, and static functions that are run from script hooks in the root package., (*2)

What the installer will do is link all the schema files to the central Midgard 2 schema dir, and all the static directories (both from themes and from components' static folders) to midcom-static, so that they are accessible via the web server., (*3)

Usage

To use the installer in a libary or component, simply set the type key to midcom-package in composer.json. You should also add openpsa/installer to your requires., (*4)

To use the installer in a root package, add openpsa/installer to your requires in composer.json. Additionally, add the following hooks:, (*5)

    "scripts": {
        "post-install-cmd": [
            "openpsa\\installer\\installer::setup_root_package"
        ],
        "post-update-cmd": [
            "openpsa\\installer\\installer::setup_root_package"
        ]
    },

Database setup

The installer package contains a CLI utility to set up new databases. From your project's root directory, you can run it like this:, (*6)

./vendor/bin/openpsa-installer midgard2:setup

You can pass the name or location of an existing Midgard2 configuration file as an argument to the script, or you can optionally specify the DB type you want to create. Run, (*7)

./vendor/bin/openpsa-installer help midgard2:setup

to see all available options., (*8)

Database Conversion

The installer can also convert (simple) Midgard 1 databases. This performs the following actions:, (*9)

  • preparing config file Midgard 2 storage and connection (like the setup command)
  • copying contents from multilang tables
  • resetting host fields to 0
  • migrating user accounts

Be advised that this command does not support databases with multiple languages or sitegroups yet. From your project's root directory, you can run it like this:, (*10)

./vendor/bin/openpsa-installer midgard2:convert

You can pass the name or location of an existing Midgard2 configuration file as an argument to the script, or you can optionally specify the auth (i.e. password storage) type you want to use. This can be useful if you have used encrypted passwords under Midgard1. By setting authtype to Legacy, you can migrate them unchanged., (*11)

Run, (*12)

./vendor/bin/openpsa-installer help midgard2:convert

to see all available options., (*13)

The Versions

16/10 2017

dev-master

9999999-dev

Installer for OpenPSA components and projects

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

04/10 2017

v1.2.3

1.2.3.0

Installer for OpenPSA components and projects

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

03/10 2017

v1.2.2

1.2.2.0

Installer for OpenPSA components and projects

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

26/09 2017

v1.2.1

1.2.1.0

Installer for OpenPSA components and projects

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

26/09 2017

v1.2.0

1.2.0.0

Installer for OpenPSA components and projects

  Sources   Download

LGPL-2.1

The Requires

 

The Development Requires

02/06 2017

v1.1.0

1.1.0.0

Installer for OpenPSA components and projects

  Sources   Download

LGPL-2.1

The Requires

 

24/08 2016

v1.0.1

1.0.1.0

Installer for OpenPSA components and projects

  Sources   Download

LGPL-2.1

The Requires

 

19/12 2015

v1.0.0

1.0.0.0

Installer for OpenPSA components and projects

  Sources   Download

LGPL-2.1

The Requires

 

23/09 2014

v1.0.0-rc.3

1.0.0.0-RC3

Installer for OpenPSA components and projects

  Sources   Download

LGPL

The Requires

 

24/06 2014

v1.0.0-rc.2

1.0.0.0-RC2

Installer for OpenPSA components and projects

  Sources   Download

LGPL

The Requires

 

05/11 2013

v1.0.0-rc.1

1.0.0.0-RC1

Installer for OpenPSA components and projects

  Sources   Download

LGPL

The Requires