Tiger_Module_Github
@api
Tiger_Module_Github — read public GitHub repos over cURL (no auth, public only).
The module installer never uses git or a token: it pulls module.json (the technical
manifest) and TIGER.md (the vendor's human description) as RAW files, resolves a pinned
release ref, and downloads the release tarball. Private repos simply 404 on raw — which the
installer treats as "not installable" (public code is the price of admission).
Methods
parseRepo()
parseRepo($url)
Parse a GitHub repo URL/slug → ['org','repo'], or null. Accepts …/org/repo(.git)(/…).
$urlstring— a GitHub repo URL or an "org/repo" slug
Returns array{org:string,repo:string}|null — the parsed parts, or null if unrecognized
fetchRaw()
fetchRaw($org, $repo, $ref, $path)
Fetch a raw file from a public repo at a ref (branch/tag/sha). Content string, or null.
$orgstring— the repo owner$repostring— the repo name$refstring— the branch, tag, or sha$pathstring— the file path within the repo
Returns string|null — the file contents, or null if unreachable