PHPackages                             duxweb/dux-lite-cloud - 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. duxweb/dux-lite-cloud

ActiveComposer-plugin

duxweb/dux-lite-cloud
=====================

DuxLite v2 cloud service expansion package

v0.0.7(yesterday)0137—0%11MITPHP

Since Feb 26Pushed yesterdayCompare

[ Source](https://github.com/duxweb/dux-lite-cloud)[ Packagist](https://packagist.org/packages/duxweb/dux-lite-cloud)[ RSS](/packages/duxweb-dux-lite-cloud/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (3)Versions (8)Used By (1)

DuxLite Cloud Package Manager
=============================

[](#duxlite-cloud-package-manager)

[![PHP Version](https://camo.githubusercontent.com/cc9cdea9aa96b40a822425e981b0a030e3371202973c7d57b74e8e99834f81dc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d626c7565)](https://packagist.org/packages/duxweb/dux-lite-cloud)[![License](https://camo.githubusercontent.com/f8df3091bbe1149f398a5369b2c39e896766f9f6efba3477c63e9b4aa940ef14/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e)](LICENSE)

DuxLite v2 云服务扩展包管理器，提供应用包和主题模板的安装、更新、卸载和发布功能。

功能特性
----

[](#功能特性)

- 📦 **包管理**: 安装、更新、卸载应用包
- 🎨 **主题管理**: 安装、更新、卸载主题模板
- 🔐 **认证系统**: 安全的云端认证
- 🌐 **多语言支持**: 自动翻译语言包
- 📤 **包发布**: 发布应用到云端仓库
- 🔄 **依赖管理**: 自动处理PHP和JS依赖
- 🔌 **插件化**: 支持主应用自动注册命令

安装
--

[](#安装)

```
composer require duxweb/dux-lite-cloud
```

命令使用
----

[](#命令使用)

### 包管理命令

[](#包管理命令)

#### 添加包

[](#添加包)

```
# 添加最新版本的包
./dux add package-name

# 添加指定版本的包
./dux add package-name:1.0.0
```

#### 删除包

[](#删除包)

```
./dux del package-name
```

#### 更新包

[](#更新包)

```
# 更新所有包
./dux update

# 更新指定包
./dux update package-name

# 更新指定包到特定版本
./dux update package-name:1.2.0
```

### 开发者命令

[](#开发者命令)

#### 发布应用

[](#发布应用)

```
# 发布应用到云端仓库
# module-folder 是 app 目录下的模块文件夹名称
# 系统会自动读取该文件夹内的 app.json 配置文件
./dux push module-folder
```

> **示例**: 如果你的模块位于 `app/User/` 目录下，使用 `./dux push user` 命令发布

**发布流程**:

1. 输入新版本号
2. 输入更新日志（支持多行）：
    - 支持多行输入，每行一个更新项
    - 连续按两次回车结束输入
    - 如果不输入任何内容，系统会自动添加默认的 "- Update" 记录
3. 系统会自动生成或更新模块目录下的 `CHANGELOG.md` 文件
4. 自动打包并上传到云端仓库

#### Composer命令

[](#composer命令)

```
# 执行composer命令
./dux composer install
./dux composer update
./dux composer require package-name
```

配置
--

[](#配置)

### 云端认证

[](#云端认证)

在使用云端功能前，需要配置认证密钥：

```
// config/use.php
return [
    'key' => 'your-cloud-key',
];
```

依赖文件
----

[](#依赖文件)

### app.json (项目根目录)

[](#appjson-项目根目录)

应用依赖配置文件，记录项目依赖的包和应用：

```
{
    "name": "project",
    "description": "This is the dux application dependency configuration",
    "dependencies": {
        "package-name": "1.0.0"
    },
    "apps": {
        "app-name": "2023-01-01 00:00:00"
    }
}
```

### app.json (模块目录)

[](#appjson-模块目录)

模块配置文件，用于发布时的模块信息配置，位于 `app/ModuleName/app.json`：

```
{
    "name": "module-package-name",
    "version": "1.0.0",
    "description": "模块描述",
    "author": "作者名称",
    "dependencies": {
        "required-package": "^1.0.0"
    }
}
```

> **注意**: 使用 `./dux push module-folder` 命令时，系统会自动读取对应模块目录下的 `app.json` 文件获取模块信息。

### CHANGELOG.md (模块目录)

[](#changelogmd-模块目录)

模块更新日志文件，记录版本变更历史，位于 `app/ModuleName/CHANGELOG.md`：

```
# Changelog

All notable changes to this project will be documented in this file.

## [1.2.0] - 2024-01-15

- 新增用户权限管理功能
- 修复登录状态检查bug
- 优化数据库查询性能

## [1.1.0] - 2024-01-10

- 添加多语言支持
- 更新UI界面设计

## [1.0.0] - 2024-01-05

- Update
```

> **自动生成**: 使用 `./dux push` 命令发布时，如果输入了更新日志，系统会自动生成或更新此文件。

### app.lock

[](#applock)

应用锁定文件，记录已安装包的详细信息：

```
{
    "_readme": [
        "This file relies on the Dux application to be in a locked state",
        "Read more about it at https://www.dux.cn"
    ],
    "packages": [
        {
            "name": "package-name",
            "version": "1.0.0:release",
            "app": "app-name"
        }
    ]
}
```

### theme.json

[](#themejson)

主题依赖配置文件，记录项目依赖的模板：

```
{
    "name": "project-theme",
    "description": "This is the theme dependency configuration",
    "dependencies": {
        "theme-name": "latest"
    }
}
```

### theme.lock

[](#themelock)

主题锁定文件，记录已安装模板的详细信息：

```
{
    "_readme": [
        "This file relies on the Dux theme to be in a locked state"
    ],
    "themes": [
        {
            "name": "theme-name",
            "dir": "site",
            "version": "1.0.0:release",
            "md5": "md5-value"
        }
    ]
}
```

### theme.json (模板目录)

[](#themejson-模板目录)

模板配置文件，位于 `theme//theme.json`：

```
{
    "name": "theme-package-name",
    "title": "模板标题",
    "description": "模板描述",
    "version": "1.0.0",
    "author": "作者名称"
}
```

许可证
---

[](#许可证)

MIT License

###  Health Score

39

—

LowBetter than 87% of packages

Maintenance100

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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 ~3 days

Total

7

Last Release

1d ago

### Community

Maintainers

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

---

Top Contributors

[![duxphp](https://avatars.githubusercontent.com/u/2184214?v=4)](https://github.com/duxphp "duxphp (23 commits)")

### Embed Badge

![Health badge](/badges/duxweb-dux-lite-cloud/health.svg)

```
[![Health](https://phpackages.com/badges/duxweb-dux-lite-cloud/health.svg)](https://phpackages.com/packages/duxweb-dux-lite-cloud)
```

###  Alternatives

[phpoffice/phpspreadsheet

PHPSpreadsheet - Read, Create and Write Spreadsheet documents in PHP - Spreadsheet engine

13.9k286.2M1.1k](/packages/phpoffice-phpspreadsheet)[symfony/flex

Composer plugin for Symfony

4.2k178.8M783](/packages/symfony-flex)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k36.2M405](/packages/spatie-laravel-medialibrary)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k302.1M1.0k](/packages/php-http-discovery)[composer/package-versions-deprecated

Composer plugin that provides efficient querying for installed package versions (no runtime IO)

1.5k188.8M197](/packages/composer-package-versions-deprecated)[composer/installers

A multi-framework Composer library installer

1.4k133.5M5.5k](/packages/composer-installers)

PHPackages © 2026

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