{"id":17291915,"url":"https://github.com/veewee/ext-wasm","last_synced_at":"2025-04-14T11:52:57.657Z","repository":{"id":153206987,"uuid":"624534860","full_name":"veewee/ext-wasm","owner":"veewee","description":"Run webassembly from PHP ","archived":false,"fork":false,"pushed_at":"2024-01-29T13:42:29.000Z","size":722,"stargazers_count":16,"open_issues_count":15,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T01:02:58.174Z","etag":null,"topics":["extension","php","wasm","wasmer","webassembly"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/veewee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["veewee"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-04-06T17:27:40.000Z","updated_at":"2025-01-14T23:28:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"764c2ab7-6a50-4298-9c6c-280646a2cad6","html_url":"https://github.com/veewee/ext-wasm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veewee%2Fext-wasm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veewee%2Fext-wasm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veewee%2Fext-wasm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veewee%2Fext-wasm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veewee","download_url":"https://codeload.github.com/veewee/ext-wasm/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877984,"owners_count":21176241,"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":["extension","php","wasm","wasmer","webassembly"],"created_at":"2024-10-15T10:42:15.126Z","updated_at":"2025-04-14T11:52:57.633Z","avatar_url":"https://github.com/veewee.png","language":"PHP","funding_links":["https://github.com/sponsors/veewee"],"categories":[],"sub_categories":[],"readme":"# WASM Extension for PHP\n\n:exclamation::exclamation::exclamation: EXPERIMENTAL  :exclamation::exclamation::exclamation:\n\n\n## Installation\n\n**Prerequisites:**\n\n* rust toolchain\n* php \u003e= 8.0 (phpdev, php-cli, php-config)\n* clang\n\n\n```sh\nmake install\n```\n\n## Usage\n\n```php\n$instance = Wasm\\InstanceBuilder::fromWat(\n    \u003c\u003c\u003c'EOWAT'\n    (module\n      (global $some (export \"some\") (mut i32) (i32.const 0))\n      (func (export \"get_some\") (result i32) (global.get $some))\n      (func (export \"set_some\") (param i32) (global.set $some (local.get 0))))\n    EOWAT\n)-\u003ebuild();\n\nvar_dump($instance-\u003esome);\n$instance-\u003esome = 1;\nvar_dump($instance-\u003esome);\nvar_dump($instance-\u003eset_some(21));\nvar_dump($instance-\u003eget_some());\n```\n\n```bash\nphp examples/global.php\n```\n\nCheck out the [examples](examples) folder for more examples.\n\n## Stubs\n\n```\nmake stubs\n```\n\n## Roadmap\n\n[You can find a more detailed roadmap here.](https://github.com/users/veewee/projects/1)\nFeel free to give me some additional keyboards! :)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveewee%2Fext-wasm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveewee%2Fext-wasm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveewee%2Fext-wasm/lists"}