Download the PHP package javleds/laravel-game-engine without Composer

On this page you can find all versions of the php package javleds/laravel-game-engine. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-game-engine

Laravel Game Engine

Reusable Laravel backend package for online turn-based board games.

This package owns the generic server-side engine: rooms, players, lobby lifecycle, chat, persisted game state, command execution, event history, and realtime broadcast events. It does not contain rules for a specific board game. A host application provides the game definition, setup handler, policy, command handlers, and player-facing view factory.

Spanish documentation is available in README.es.md.

Repository Links

Official repositories:

Package Pair

This package is the backend half of the engine. It is designed to be used with the Vue client package, @javleds/vue-turn-engine, but the HTTP and realtime contracts can also be consumed by another frontend.

Responsibilities

The engine package provides:

The host game provides:

Installation

For local development with a sibling checkout:

Then run:

For Packagist usage, replace the path repository with the official package version once the repository is published.

Laravel Setup

The service provider is auto-discovered through Composer:

Publish config only if the host app wants a local config file:

The host application must register at least one GameDefinition in TurnEngine\Laravel\GameRegistry.

If more than one game is registered, configure the default game key:

Core Contracts

A game adapter implements these contracts:

The dependency direction is always host game -> engine contracts. The engine does not depend on host game classes.

Backend / Frontend Contract

The Vue package expects the host app to expose compatible HTTP endpoints for room, chat, and game state flows. The current engine services are transport-agnostic enough to sit behind Laravel controllers, API resources, or another HTTP layer.

Realtime events use room channels and these event names:

The frontend package must be configured with the host realtime client, usually Laravel Echo.

Publishing Checklist

Before publishing this package publicly:

Current Status

This package is extracted and usable as a local Composer path package. It is not tied to the Giants game domain.

Quality Checks

Run package metadata validation before publishing:


All versions of laravel-game-engine with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0
illuminate/database Version ^12.0
illuminate/broadcasting Version ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package javleds/laravel-game-engine contains the following files

Loading the files please wait ...