deivao06 / merchant-cli
A CLI merchant game
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Type:project
pkg:composer/deivao06/merchant-cli
Requires
- php: ^8.2
Requires (Dev)
- laravel-zero/framework: ^12.0.2
- laravel/pint: ^1.25.1
- mockery/mockery: ^1.6.12
- pestphp/pest: ^3.8.4|^4.1.2
This package is auto-updated.
Last update: 2026-01-29 15:10:31 UTC
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.
