{"id":27880669,"url":"https://github.com/linkorb/lua-php","last_synced_at":"2025-05-05T04:35:10.291Z","repository":{"id":62517380,"uuid":"281987953","full_name":"linkorb/lua-php","owner":"linkorb","description":"Lua PHP: Library for extending your application with Lua scripts","archived":false,"fork":false,"pushed_at":"2020-07-29T12:27:41.000Z","size":5,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-13T22:44:10.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/linkorb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-23T15:24:23.000Z","updated_at":"2024-10-23T22:55:58.000Z","dependencies_parsed_at":"2022-11-02T10:31:13.408Z","dependency_job_id":null,"html_url":"https://github.com/linkorb/lua-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Flua-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Flua-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Flua-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/linkorb%2Flua-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/linkorb","download_url":"https://codeload.github.com/linkorb/lua-php/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252441788,"owners_count":21748446,"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","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-05-05T04:35:09.322Z","updated_at":"2025-05-05T04:35:10.281Z","avatar_url":"https://github.com/linkorb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Lua PHP\n=======\n\nThis library enables you to add Lua scripting support to your PHP applications.\n\n## LuaSandbox\n\nThe LuaSandbox class allows you to easily run user-supplied Lua scripts in an empty sandbox environment.\nThis means that dangerous functions (i.e. for file and network IO) are unavailable by default.\nTo make the sandbox useful, you register your own PHP-implemented functions that you allow the chunks to execute.\n\n## Use-cases\n\n* Support user-supplied scripts to respond to events in your application\n* Advanced expressions, filters, segments\n* Customizable routing\n* ... and many more :)\n\n## Usage\n\nCheck the `example/` directory for a well-documented example.\n\n## About Lua\n\n* Website: http://www.lua.org/\n* Wikipedia: https://en.wikipedia.org/wiki/Lua_(programming_language)\n\n## Requirements\n\nThis library requires that the [PHP Lua extension](https://www.php.net/manual/en/book.lua.php) is installed.\n\nA quick install guide for Ubuntu:\n\n```sh\n# Install lua library\napt-get install -y --no-install-recommends lua5.3 liblua5.3-dev\n# pecl expects liblua and includes in specific locations, so move them around a bit:\ncp /usr/lib/x86_64-linux-gnu/liblua5.3.a /usr/lib/liblua.a\ncp /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/lib/liblua.so\nln -s /usr/include/lua5.3 /usr/include/lua\n# Install the lua extension through pecl\npecl install lua\n# Activate the lua extension in your PHP config\nphp --ini # find out where your PHP config files are located\necho \"extension=lua.so\" \u003e /path/to/my/php/conf.d/lua.ini\n```\n\n## License\n\nMIT. Please refer to the [license file](LICENSE) for details.\n\n## Brought to you by the LinkORB Engineering team\n\n\u003cimg src=\"http://www.linkorb.com/d/meta/tier1/images/linkorbengineering-logo.png\" width=\"200px\" /\u003e\u003cbr /\u003e\nCheck out our other projects at [linkorb.com/engineering](http://www.linkorb.com/engineering).\n\nBtw, we're hiring!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Flua-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinkorb%2Flua-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinkorb%2Flua-php/lists"}