PHPackages                             move-elevator/humhub-composer-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. move-elevator/humhub-composer-installer

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

move-elevator/humhub-composer-installer
=======================================

a composer installer for the intranet software humhub.

2.0.0(6y ago)53.7k3MITPHPPHP &gt;=7.1

Since Nov 6Pushed 6y ago5 watchersCompare

[ Source](https://github.com/move-elevator/humhub-composer-installer)[ Packagist](https://packagist.org/packages/move-elevator/humhub-composer-installer)[ RSS](/packages/move-elevator-humhub-composer-installer/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (4)Versions (13)Used By (0)

[![Build Status](https://camo.githubusercontent.com/1b65872960196be72a35c69d50fe5a167d84cdafe6e5e9daa359054ae6c4711a/68747470733a2f2f7472617669732d63692e6f72672f6d6f76652d656c657661746f722f68756d6875622d636f6d706f7365722d696e7374616c6c65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/move-elevator/humhub-composer-installer)[![Software License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](LICENSE)[![Latest Stable Version](https://camo.githubusercontent.com/070df5214778c9b7d9e80780a38e5b6bce914c226991c99a5e353175d718acc3/68747470733a2f2f706f7365722e707567782e6f72672f6d6f76652d656c657661746f722f68756d6875622d636f6d706f7365722d696e7374616c6c65722f762f737461626c65)](https://packagist.org/packages/move-elevator/humhub-composer-installer)[![Total Downloads](https://camo.githubusercontent.com/bc2143a5c1511d84ecce937918d07c567157b9097ba6280f7f3040154319e917/68747470733a2f2f706f7365722e707567782e6f72672f6d6f76652d656c657661746f722f68756d6875622d636f6d706f7365722d696e7374616c6c65722f646f776e6c6f616473)](https://packagist.org/packages/move-elevator/humhub-composer-installer)

### Humhub Composer Installer

[](#humhub-composer-installer)

This package installs HumHub in version 1.3.\* into a web directory which can be configured in the composer.json of your project and is relative to the project-vendor dir(`humhub: web-dir`). You can also configure a configuration directory (`humhub: config-dir`). In that directory you can put a project index.php, .htaccess and protected/yii which will be symlinked into the humhub web directory.

You can also configure a folder for your own modules directory (`humhub: module-dir`) and for the themes directory (`humhub: theme-dir`) These will also be symlinked into the humhub web directory and should be relative to the project-vendor-dir.

If there aren't any configuration files (index.php, protected/yii) provided by your project, this package will install default configuration files. These you can find in the `etc/config` directory of this package.

The whole web-directory will be regenerated by any composer update or install. The generated symlinks are relative paths, so they can be compressed, for example as tar or zip file. That´s important for deployments or any other movement of the project.

To install Humhub:
------------------

[](#to-install-humhub)

Add the following lines to the composer.json of your project:

```
  "require": {
    "oomphinc/composer-installers-extender": "^1.1",
    "bower-asset/select2-bootstrap-theme": "0.1.0-beta.4",
    "humhub/humhub": "v1.2.3",
    "move-elevator/humhub-composer-installer": "~1.0"
  },
  "autoload": {
    "psr-4": {
      "humhub\\": "web/protected/humhub",
      "humhub\\modules\\": "web/protected/modules"
    }
  },
  "repositories": [
    {
      "type": "vcs",
      "url":  "https://github.com/humhub/humhub.git"
    },
    {
      "type": "composer",
      "url": "https://asset-packagist.org"
    }
  ],
  "scripts": {
    "post-update-cmd": [
      "MoveElevator\\Composer\\Installer::initialize"
    ],
    "post-install-cmd": [
      "MoveElevator\\Composer\\Installer::initialize"
    ]
  },
  "extra": {
    "humhub": {
      "web-dir": "../web",
      "config-dir": "../etc/config",
      "module-dir": "../modules",
      "theme-dir": "../themes"
    },
    "installer-types": [
      "bower-asset",
      "npm-asset"
    ],
    "installer-paths": {
      "vendor/bower/{$name}/": ["type:bower-asset"],
      "vendor/npm/{$name}/": ["type:npm-asset"]
    },
  }

```

This example uses  for the installation of bower and npm assets. In case you used the [fxpio/composer-asset-plugin](https://github.com/fxpio/composer-asset-plugin) before, disable the plugin to avoid trouble. Simply add following to the composer.json:

```
config": {
  "fxp-asset": {
    "enabled": false
  }
},

```

For a detailed description visit .

Checks
------

[](#checks)

Run each command in the current package root directory.

### Execute PHPUnit tests

[](#execute-phpunit-tests)

```
./vendor/bin/phpunit.phar -c ./phpunit.xml --testdox

```

### Execute PHPStan checks

[](#execute-phpstan-checks)

```
./vendor/bin/phpstan.phar analyse -l max -c ./phpstan.neon ./src/

```

### Execute phpcs fixer

[](#execute-phpcs-fixer)

```
./vendor/bin/phpcs-fixer.phar fix ./src

```

### Execute checkstyle for PSR2

[](#execute-checkstyle-for-psr2)

```
./vendor/bin/phpcs.phar ./src --standard=PSR2

```

### TroubleShooting

[](#troubleshooting)

- This package could not handle a vendor-, web-, config-, theme- or module-directory outside the project root-directory.
- There will be created no `uploads`-directory from this package. you can link a global directory to uploads after a deployment. so you can prevent to lose all your previous uploads.
- Updates or downloads from the online marketplace, will be downloaded into the folder `vendor/humhub/humhub/protected/modules` and should be moved to your origin `module-dir`.
    - At the moment there is no possibility in humhub to reconfigure these download-folder.
    - After install a new module and move to the origin `module-dir` you should rerun the install script of this package. If you use the example above, you can run `composer run-script post-update-cmd`

### TODO

[](#todo)

- test and implement install for windows system

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 85.7% 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 ~79 days

Recently: every ~157 days

Total

9

Last Release

2475d ago

Major Versions

0.1.0 → 1.0.0-rc12017-11-06

0.1.1 → 1.0.02017-11-08

0.1.2 → 1.0.12018-05-22

1.0.1 → 2.0.0-rc12019-07-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/f71257bb4db7f3adcabdc7d93e0f84c00aa50689b1411976b57f6a57ed7b6b2e?d=identicon)[move-elevator](/maintainers/move-elevator)

---

Top Contributors

[![freshp](https://avatars.githubusercontent.com/u/4762257?v=4)](https://github.com/freshp "freshp (6 commits)")[![svenjungnickel](https://avatars.githubusercontent.com/u/7140380?v=4)](https://github.com/svenjungnickel "svenjungnickel (1 commits)")

---

Tags

composerinstallerhumhub

### Embed Badge

![Health badge](/badges/move-elevator-humhub-composer-installer/health.svg)

```
[![Health](https://phpackages.com/badges/move-elevator-humhub-composer-installer/health.svg)](https://phpackages.com/packages/move-elevator-humhub-composer-installer)
```

###  Alternatives

[kenjis/codeigniter-composer-installer

Package to install CodeIgniter3 via Composer with secure folder structure.

37561.8k](/packages/kenjis-codeigniter-composer-installer)[craftcms/plugin-installer

Craft CMS Plugin Installer

283.3M4](/packages/craftcms-plugin-installer)[infinum/eightshift-libs

WordPress libs developed by Eightshift team to use in modern WordPress.

63118.9k3](/packages/infinum-eightshift-libs)[joomlatools/composer

A Composer plugin to install Joomla extensions into your installation.

5332.9k24](/packages/joomlatools-composer)[compwright/codeigniter-installers

Composer installers for CodeIgniter

2982.0k4](/packages/compwright-codeigniter-installers)[flarum/extension-manager

An extension manager to install, update and remove extension packages from the interface (Wrapper around composer).

12211.5k](/packages/flarum-extension-manager)

PHPackages © 2026

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