Search by

jumphp / externals

davidnurdin

Externals for JumPHP games: big files shared by the playground's administrator (the server's externals folder), browsed, searched and read like a disk, block by block, cached

Package info

git.jumphp.net/jumphp/jumphp-externals.git

Homepage

Issues

Type:jumphp-extension

pkg:composer/jumphp/externals

Statistics

Installs: 20

Dependents: 0

Suggesters: 0

v0.5.80 2026-11-14 18:26 UTC

README

A JumPHP engine extension: big game data streamed from the playground. The administrator shares folders of the server's externals/ with chosen games; a game lists them, searches them and reads files like a disk: only the 64 KB blocks it reads are downloaded (HTTP Range), cached in memory and in the player's storage. On the desktop and in tests, local folders stand in for the server.

bin/jumphp composer mygame require jumphp/externals
$this->externals->open('mygame/data/level1.bin')->then(
    fn (\JumPHP\Externals\RemoteFile $f) => $f->read(1024, 64)->then(fn (string $bytes) => ...));

Documentation: doc/index.md; tutorial: doc/tutorial.md; samples: doc/samples/; example game: games/externals-demo. MIT licence.