PHPackages                             haohetao/asset-packagist.dev - 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. haohetao/asset-packagist.dev

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

haohetao/asset-packagist.dev
============================

asset-packagist.dev

2132PHP

Since Apr 15Pushed 6y agoCompare

[ Source](https://github.com/haohetao/asset-packagist.dev)[ Packagist](https://packagist.org/packages/haohetao/asset-packagist.dev)[ RSS](/packages/haohetao-asset-packagistdev/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

### 运行环境

[](#运行环境)

因为composer-config-plugin使用了php7.4的语法，所以要求用php7.4才能运行
hiqdev\\yii2\\menus\\widgets\\Menu中有一处notice级错误，所以设置
error\_reporting = E\_ALL &amp; ~E\_NOTICE &amp; ~E\_STRICT &amp; ~E\_DEPRECATED
mysql 8.0
extensions
zip pdo mysqli mbstring ctype gd curl
software
git ssh zip unzip

### Create the DB in MySQL:

[](#create-the-db-in-mysql)

```
CREATE DATABASE asset_packagist;
CREATE USER 'asset-packagist'@'%' IDENTIFIED BY 'GOOD_PASSWORD';
GRANT ALL PRIVILEGES ON asset_packagist.* TO 'asset-packagist'@'%';
FLUSH PRIVILEGES;
```

### Create the project with composer:

[](#create-the-project-with-composer)

```
composer create-project --stability=dev "haohetao/asset-packagist.dev:*" asset-packagist
```

### Make configuration tuning:

[](#make-configuration-tuning)

Copy `.env.example` to `.env` and adjust it:

```
cp .env.example
edit .env
```

Be sure to set `COOKIEVALIDATIONKEY` and `DB_PASSWORD`:

```
COOKIEVALIDATIONKEY=GOOD_RANDOM_STRING_HERE
DB_PASSWORD=YOUR_DB__PASSWORD
```

### Deploy the project

[](#deploy-the-project)

这个命令可以导入数据库，创建初始化文件(数据库配置，必要的目录，yii2入口文件)，也可以手工处理这些工作 我使用这个命令的时候会少创建一个文件，这个文件的模板在vendor/hiqdev/hidev-webapp/src/views/webapp/config/bootstrap.twig 可以复制为src/config/bootstrap.php 然后还要执行

```
composer dump-autoload
```

这条命令会根据.ENV的内容生成配置写入到vendor/hiqdev/composer-config-plugin-output目录 最后执行以下命令进行初始化

```
./vendor/bin/hidev deploy
```

Configure your web-server. 这个命令是创建nginx的站点配置，如果你自己配置站点，可以不执行 (hidev can install nginx config for you, run `./vendor/bin/hidev nginx/deploy`).

Try to fetch your first package from web-interface or using the following command: 以命令行方式获取包

```
./vendor/bin/hidev asset-package/update bower jquery
```

### Working with queues

[](#working-with-queues)

这个队列是用于安装依懒包的，需要驻留后台一直运行，每执行1000(原来是100个)个任务会自动退出1次,需要用进程管理工具自动启动 Some operations such as package update will push tasks to queue. Run queue to execute that tasks:

```
./vendor/bin/hidev queue/run
```

It is recommended to run all console commands from the same user you are running the web application to prevent permissions problems in `web/p` directory.

### Known bugs:

[](#known-bugs)

Just skip yellow warnings `Couldn't read ...` - they are unimportant.

添加git访问权限(不确定是否必需) 如果站点是以www-data用户运行的，在/var/www/.ssh中创建ssh密钥并添加到github账号中

License
-------

[](#license)

This project is released under the terms of the BSD-3-Clause [license](LICENSE). Read more [here](http://choosealicense.com/licenses/bsd-3-clause).

Copyright © 2016-2018, HiQDev ()

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80.3% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/49ee9003109866ee01a052ac1c956a4302217912349bac7c43c297647b3694f3?d=identicon)[haohetao](/maintainers/haohetao)

---

Top Contributors

[![hiqsol](https://avatars.githubusercontent.com/u/11820365?v=4)](https://github.com/hiqsol "hiqsol (49 commits)")[![haohetao](https://avatars.githubusercontent.com/u/4592571?v=4)](https://github.com/haohetao "haohetao (7 commits)")[![SilverFire](https://avatars.githubusercontent.com/u/4499203?v=4)](https://github.com/SilverFire "SilverFire (3 commits)")[![edgardmessias](https://avatars.githubusercontent.com/u/1530997?v=4)](https://github.com/edgardmessias "edgardmessias (1 commits)")[![jomonkj](https://avatars.githubusercontent.com/u/11212888?v=4)](https://github.com/jomonkj "jomonkj (1 commits)")

### Embed Badge

![Health badge](/badges/haohetao-asset-packagistdev/health.svg)

```
[![Health](https://phpackages.com/badges/haohetao-asset-packagistdev/health.svg)](https://phpackages.com/packages/haohetao-asset-packagistdev)
```

PHPackages © 2026

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