PHPackages                             ank/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. ank/installer

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

ank/installer
=============

Extend the composer/installers plugin to accept any arbitrary package type.

1.0.13(5y ago)091MITPHP

Since Nov 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zhaokeli/ank-installer)[ Packagist](https://packagist.org/packages/ank/installer)[ Docs](http://www.oomphinc.com/)[ RSS](/packages/ank-installer/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (15)Used By (0)

Composer Installers
===================

[](#composer-installers)

使用方法
----

[](#使用方法)

```
composer require ank/installer
```

配置方法
----

[](#配置方法)

新创建一种纯静态资源包类型 `static`,包配置如下：

```
{
    "name": "ank/admin",
    "type": "static",
    "license": "MIT",
}
```

安装的时候需要安装到当前项目的 `web/public` 目录下面,

在根`composer.json` 中添加上面自定义类型的支持

```
 "extra": {
      "installer-types": ["static"],
      "installer-paths": {
      "special/package/{$name}": ["ank/admin"],
      "web/public/{$name}/": ["type:static"],
      "web/vendor/{$name}/":["vendor:my_organization"]
    }
 }
```

可使用三种方法来匹配安装包, 1、直接使用包名字 2、按类型来匹配 3、按供应商名字来归类

路径中可以使用的变量 `{$name}` `{$vendor}` `{$type}`

默认情况下如果一个包不指定type则默认为 `library`,安装的时候如果这个类型已经添加到 `"installer-types"`, 插件将会云查询映射的安装路径.如果没有匹配到则使用默认安装路径。

映射路径规则，可以参考 [`composer/installers`](https://github.com/composer/installers#custom-install-paths):

其它请查看 [`composer/installers`](https://github.com/composer/installers) 的README 文档 (e.g. `{$name}`).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 78.4% 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 ~30 days

Recently: every ~58 days

Total

14

Last Release

2025d ago

### Community

Maintainers

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

---

Top Contributors

[![735579768](https://avatars.githubusercontent.com/u/2497797?v=4)](https://github.com/735579768 "735579768 (69 commits)")[![balbuf](https://avatars.githubusercontent.com/u/3887845?v=4)](https://github.com/balbuf "balbuf (13 commits)")[![bendoh](https://avatars.githubusercontent.com/u/1833896?v=4)](https://github.com/bendoh "bendoh (2 commits)")[![cfoellmann](https://avatars.githubusercontent.com/u/1256090?v=4)](https://github.com/cfoellmann "cfoellmann (1 commits)")[![webflo](https://avatars.githubusercontent.com/u/123946?v=4)](https://github.com/webflo "webflo (1 commits)")[![XedinUnknown](https://avatars.githubusercontent.com/u/1428973?v=4)](https://github.com/XedinUnknown "XedinUnknown (1 commits)")[![zhaokeli](https://avatars.githubusercontent.com/u/2497841?v=4)](https://github.com/zhaokeli "zhaokeli (1 commits)")

### Embed Badge

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

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

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)[drupal/core-project-message

Adds a message after Composer installation.

2124.7M203](/packages/drupal-core-project-message)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[phpro/grumphp-shim

GrumPHP Phar distribution

294.7M340](/packages/phpro-grumphp-shim)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)

PHPackages © 2026

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