{"id":29806765,"url":"https://github.com/raudius/luar","last_synced_at":"2025-07-28T14:13:37.397Z","repository":{"id":63536848,"uuid":"559590196","full_name":"Raudius/Luar","owner":"Raudius","description":"Lua interpreter for PHP","archived":false,"fork":false,"pushed_at":"2023-07-15T21:25:47.000Z","size":247,"stargazers_count":14,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-12T08:41:38.955Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Raudius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-30T15:33:40.000Z","updated_at":"2025-05-01T19:55:02.000Z","dependencies_parsed_at":"2023-01-22T12:45:19.388Z","dependency_job_id":null,"html_url":"https://github.com/Raudius/Luar","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Raudius/Luar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raudius%2FLuar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raudius%2FLuar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raudius%2FLuar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raudius%2FLuar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raudius","download_url":"https://codeload.github.com/Raudius/Luar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raudius%2FLuar/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267528008,"owners_count":24102032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-28T14:13:33.898Z","updated_at":"2025-07-28T14:13:37.386Z","avatar_url":"https://github.com/Raudius.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Luar\n\nLuar is a Lua interpreter written in PHP.\n\nLuar implements a reduced version of Lua and also packages some essential Lua libraries. As such Luar offers forward-compatibility with Lua with some minor caveats:\n\n* The math/string libraries use PHP number/string handling; much of the edge-case behaviour has **not** been replicated (e.g. division by zero, integer overflow)\n* Not all core functions and libraries are available, but a method is provided to inject your own\n* Some language constructs are not implemented (e.g. variable attributes, go-to statements)\n\n## Installation\n```\ncomposer require raudius/luar\n```\n\n## Usage\n\nFor more details read [the documentation](docs/README.md).\n\n```php\n$luar = new Luar();\n$luar-\u003eassign('world', 'Moon');\n$luar-\u003eassign('hello_world', function ($name='world') {\n    return \"Hello, $name!\";\n});\n\n$program = '\n    local greeting = hello_world(world)\n    print(greeting)\n    \n    return greeting\n';\n\n$greeting = $luar-\u003eeval($program);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraudius%2Fluar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraudius%2Fluar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraudius%2Fluar/lists"}