Skip to main content

Basic Setup Examples

This directory contains basic setup examples and screenshots for getting started with the Moitribe PHP SDK.

Contents

  • screenshots/ - Screenshots showing basic setup steps
  • Installation examples
  • Initial configuration examples
  • First API call examples

Screenshots

Screenshots should be placed in the screenshots/ subdirectory and referenced using relative paths:

![Installation Step](./screenshots/installation-step.png)

Basic Setup Flow

  1. Install SDK via Composer
  2. Configure API credentials
  3. Initialize the SDK
  4. Make first API call
  5. Handle authentication

Example Code Structure

// Basic setup example
use Veniso\Moitribe\Sdk\MoitribeApi;

$moitribe = new MoitribeApi([
'apiKey' => 'your-api-key',
'gameId' => 'your-game-id'
]);

// First API call
$result = $moitribe->authenticate()->forceLogin('player-123');