58 lines
2.3 KiB
JSON
58 lines
2.3 KiB
JSON
{
|
|
"name": "jumphp/externals",
|
|
"description": "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",
|
|
"type": "jumphp-extension",
|
|
"license": "MIT",
|
|
"require": {
|
|
"php": ">=8.2"
|
|
},
|
|
"autoload": {
|
|
"psr-4": {
|
|
"JumPHP\\Externals\\": "src/"
|
|
}
|
|
},
|
|
"extra": {
|
|
"jumphp": {
|
|
"name": "Externals",
|
|
"engine": "^0.5",
|
|
"summary": "Big game data streamed from the playground: browse, search, read files by blocks, cached",
|
|
"features": [
|
|
"list / search / stat the folders the administrator shares with the game",
|
|
"open a file and read any part of it: only its 64 KB blocks are downloaded (HTTP Range)",
|
|
"memory cache + persistent cache (IndexedDB in the browser): read once, not downloaded again",
|
|
"readAll() with progress for a whole file",
|
|
"local folders instead of the server on desktop and in tests"
|
|
],
|
|
"services": [
|
|
"JumPHP\\Externals\\Externals"
|
|
],
|
|
"boot": "JumPHP\\Externals\\Externals",
|
|
"config": {
|
|
"externals": {
|
|
"default": {
|
|
"url": "auto",
|
|
"local": {},
|
|
"block": 65536,
|
|
"memory_mb": 32,
|
|
"persist": true,
|
|
"parallel": 4
|
|
},
|
|
"doc": "Externals: url (auto = /<project id>/play/externals/ of the playground in the browser, or an https:// URL), local = {externals folder: folder of the game} (desktop, tests), block size, memory cache in MB, persist blocks in var/, parallel requests"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"keywords": [
|
|
"jumphp",
|
|
"jumphp-extension",
|
|
"game",
|
|
"files",
|
|
"streaming",
|
|
"http-range"
|
|
],
|
|
"homepage": "https://jumphp.net/extensions/externals",
|
|
"support": {
|
|
"source": "https://git.jumphp.net/jumphp/jumPhp/src/branch/main/extensions/externals",
|
|
"issues": "https://git.jumphp.net/jumphp/jumPhp/issues"
|
|
}
|
|
}
|