定制 deivao06/merchant-cli 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

deivao06/merchant-cli

Composer 安装命令:

composer create-project deivao06/merchant-cli

包简介

A CLI merchant game

README 文档

README

merchant-cli-logo

Total Downloads Latest Stable Version License

A command-line trading game where you play as a merchant, trading with other players on the same network to grow your city.

About the Game

Merchant CLI is a multiplayer game that runs in your terminal. The core gameplay revolves around trading resources with other players to acquire the materials needed to upgrade your city. Each player manages their own city, and the goal is to become the most prosperous merchant.

Features

  • Multiplayer Trading: Trade resources with other players on the same LAN (Coming Soon).
  • City Management: Build and upgrade your city to increase your production and unlock new abilities.
  • Resources production: All resources are produced per minute.
  • Biomes: Random selected on city creation and directly affects resource production.
  • Resources:
    • Gold: Universal currency used for trade.
    • Food: Keeps your population fed an is required for some upgrades.
    • Wood: Basic building material.
    • Stone: Used for strong structures and upgrades.
  • Buildings:
    • Farm: Produces food.
    • Sawmill: Produces wood.
    • Quarry: Produces stone.

Installation

You can install the merchant-cli globally using Composer:

composer global require deivao06/merchant-cli

Alternatively, you can clone the repository and install dependencies:

  1. Clone the repository:
    git clone https://github.com/your-username/merchant-cli.git
  2. Install the dependencies:
    composer install
  3. Run the game:
    php merchant-cli

How to Play

Initialize a new game

To start a new game, run the game:init command. This will create a new game world and save file.

merchant-cli game:init

Check your game status

To see the current status of your city, resources, and buildings, use the game:status command.

merchant-cli game:status

Trading

(Coming soon)

Development

This project is built with PHP and the Laravel Zero framework.

Running tests

To run the test suite, use the following command:

./vendor/bin/pest

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue. Before contributing, please read our development guide.

Development Guide - Essential reading for contributors

Quick start for Contributors:

  1. Fork the project
  2. Create your Feature Branch from dev (never from master)
  3. Ensure all tests pass and add tests for new features
  4. Commit your changes using conventional commit format
  5. Push to the Branch
  6. Open a Pull Request to the dev branch

Important: Never commit directly to the master branch. All changes must go through the dev branch first.

Authors

@deivao06

deivao06/merchant-cli 适用场景与选型建议

deivao06/merchant-cli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 01 月 27 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「cli」 「console」 「laravel」 「game」 「Laravel Zero」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 deivao06/merchant-cli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 deivao06/merchant-cli 我们能提供哪些服务?
定制开发 / 二次开发

基于 deivao06/merchant-cli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 22
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-27