deivao06/merchant-cli
Composer 安装命令:
composer create-project deivao06/merchant-cli
包简介
A CLI merchant game
README 文档
README
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:
- Clone the repository:
git clone https://github.com/your-username/merchant-cli.git
- Install the dependencies:
composer install
- 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:
- Fork the project
- Create your Feature Branch from
dev(never frommaster) - Ensure all tests pass and add tests for new features
- Commit your changes using conventional commit format
- Push to the Branch
- Open a Pull Request to the
devbranch
Important: Never commit directly to the master branch. All changes must go through the dev branch first.
Authors
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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 deivao06/merchant-cli 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
A table generator class for the PHP CLI.
Slim starter / Slim skeleton package to boost your development with Slim framework
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-27
