Client

Install Composer

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.

To install Composer on your system, follow this guide for Unix and macOS and this guide for Windows.

Install Package with Composer

To install the arkecosystem/client package from the feat/mainsail branch, use the following command:

composer require arkecosystem/client:dev-feat/mainsail

Alternatively, you can add it directly to your composer.json file:

{
  "require": {
    "arkecosystem/client": "dev-feat/mainsail"
  },
  "minimum-stability": "dev",
  "prefer-stable": true
}

Then, update your dependencies:

composer update

Note: Using a development branch may require you to adjust the minimum-stability setting in your composer.json file to allow dev versions.

Development

  1. Fork the package.
  2. Clone your forked repository.
git clone https://github.com/<githubusername>/php-client
  1. Next, move into the cloned directory.
cd php-client
  1. Switch to the feat/mainsail branch.
git checkout feat/mainsail
  1. Install the dependencies with Composer.
composer install
  1. Dependencies are now installed. You can now run the tests to see if everything is running as it should.
phpunit