Download the PHP package lenga/engine without Composer

On this page you can find all versions of the php package lenga/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 engine

Lenga Engine Logo

Lenga PHP Engine

lenga/engine is the PHP gameplay API for the Lenga Engine.

Release history and package-level changes are tracked in CHANGELOG.md.

It provides the PHP-side classes that game scripts use at runtime, including:

This package is intended to live as a standalone Composer package and be consumed by Lenga projects through normal Composer workflows.

What This Package Is

This repository contains the PHP scripting surface that runs inside the Lenga native runtime.

It is the layer that lets developers write gameplay code in modern PHP and interact with the engine through high-level classes instead of raw bridge calls.

Example:

What This Package Is Not

This package does not include:

Those belong to the Lenga SDK and native engine distribution.

lenga/engine is the PHP API layer only.

Using This Package

Install lenga/engine in your project through Composer, then write gameplay code against the Lenga\Engine\... API surface.

This package is designed for source projects. Exported Lenga builds are expected to include the resolved PHP dependencies they need at runtime.

Requirements

Installation

When the package is available through Composer, the normal install command will be:

Use the same major.minor line as your installed Lenga SDK/runtime.

If you are evaluating the package directly from source before it is published, you can install it through a Composer path or vcs repository.

What Else You Need

lenga/engine gives you the PHP gameplay API. You still need the Lenga SDK to run and export a game.

The SDK provides:

This package provides:

Most projects need both:

Current API Areas

The current package includes first-class PHP surfaces for:

Example: Behaviour Script

Example: Runtime Spawning

Example: Local Preferences

Development

Install dev dependencies:

Run tests:

License

This package is being prepared for source-available distribution under SSAL for the initial standalone release.

Until the standalone repository includes its final LICENSE file, do not assume MIT or open-source terms.


All versions of engine with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-json Version *
ext-mbstring Version *
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 lenga/engine contains the following files

Loading the files please wait ...