Download the PHP package openpsa/installer without Composer
On this page you can find all versions of the php package openpsa/installer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openpsa/installer
More information about openpsa/installer
Files in openpsa/installer
Package installer
Short Description Installer for OpenPSA components and projects
License LGPL-2.1
Informations about the package installer
OpenPSA Installer
Installation and setup tools for OpenPSA/MidCOM packages and projects.
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.
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.
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.
To use the installer in a root package, add openpsa/installer to your requires in composer.json.
Additionally, add the following hooks:
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:
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
to see all available options.
All versions of installer with dependencies
symfony/console Version >=6.4
symfony/filesystem Version >=6.4
composer-plugin-api Version ^2.0
openpsa/midgard-portable Version >=1.10