PHPackages                             openpsa/installer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. openpsa/installer

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

openpsa/installer
=================

Installer for OpenPSA components and projects

v1.5.4(4mo ago)025.9k↓28.6%2LGPL-2.1PHPPHP &gt;=8.1CI passing

Since Nov 5Pushed 3w ago1 watchersCompare

[ Source](https://github.com/flack/openpsa-installer)[ Packagist](https://packagist.org/packages/openpsa/installer)[ RSS](/packages/openpsa-installer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (6)Versions (19)Used By (2)

OpenPSA Installer
=================

[](#openpsa-installer)

Installation and setup tools for [OpenPSA](http://openpsa2.org)/[MidCOM](http://midgard-project.org/midcom/) packages and projects.

Composer Support
----------------

[](#composer-support)

Due to the logic of [Composer](http://getcomposer.org), 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

[](#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 `require`s.

To use the installer in a root package, add `openpsa/installer` to your `require`s in `composer.json`. Additionally, add the following hooks:

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

Database setup
--------------

[](#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:

```
./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

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

to see all available options.

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance85

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~263 days

Recently: every ~108 days

Total

18

Last Release

147d ago

PHP version history (5 changes)v1.0.0-rc.1PHP &gt;=5.3.0

v1.2.0PHP &gt;=5.4.0

v1.3.0PHP ^7.0

v1.4.1PHP &gt;=7.1

v1.5.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/e4f0ce449f03f8b943679aebdd079e951c4d27e3c7c87c15896b9e3426e6a071?d=identicon)[flack](/maintainers/flack)

---

Top Contributors

[![flack](https://avatars.githubusercontent.com/u/425166?v=4)](https://github.com/flack "flack (162 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/openpsa-installer/health.svg)

```
[![Health](https://phpackages.com/badges/openpsa-installer/health.svg)](https://phpackages.com/packages/openpsa-installer)
```

###  Alternatives

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[phpro/grumphp

A composer plugin that enables source code quality checks.

4.3k16.7M1.0k](/packages/phpro-grumphp)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[oro/platform

Business Application Platform (BAP)

645143.5k115](/packages/oro-platform)[api-platform/openapi

Models to build and serialize an OpenAPI specification.

404.8M94](/packages/api-platform-openapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
