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

ActiveComposer-plugin

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 1mo ago

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 59% 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

1978d 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

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[altis/core

Core module for Altis

19213.6k2](/packages/altis-core)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[php-composter/php-composter

Git Hooks Management through Composer.

10525.1k11](/packages/php-composter-php-composter)

PHPackages © 2026

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