{"id":18320692,"url":"https://github.com/xtlsoft/zephir-c-call","last_synced_at":"2025-04-09T14:29:07.790Z","repository":{"id":57085108,"uuid":"198763927","full_name":"xtlsoft/zephir-c-call","owner":"xtlsoft","description":"An extension that allows you to call C functions in Zephir.","archived":false,"fork":false,"pushed_at":"2019-07-25T06:09:13.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T08:30:46.797Z","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/xtlsoft.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":"2019-07-25T05:34:06.000Z","updated_at":"2019-07-25T06:08:20.000Z","dependencies_parsed_at":"2022-08-24T22:50:20.750Z","dependency_job_id":null,"html_url":"https://github.com/xtlsoft/zephir-c-call","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2Fzephir-c-call","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2Fzephir-c-call/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2Fzephir-c-call/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xtlsoft%2Fzephir-c-call/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xtlsoft","download_url":"https://codeload.github.com/xtlsoft/zephir-c-call/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248054839,"owners_count":21040075,"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":"2024-11-05T18:17:15.870Z","updated_at":"2025-04-09T14:29:07.749Z","avatar_url":"https://github.com/xtlsoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Zephir C Call\n\nAn extension that allows you to call C functions in Zephir.\n\n## Installation\n\nIf your zephir is installed in project scope:\n\n```php\ncomposer require xtlsoft/zephir-c-call\n```\n\nIf your zephir is installed in global scope:\n\n```php\ncomposer g require xtlsoft/zephir-c-call\n```\n\nIf your zephir was installed as zephir.phar:\n\nYou need to re-pack the zephir.phar file.\n\n## Usage\n\nYou can call `c_include`, `c_call`, `c_runf` functions from Zephir.\n\n### c_include\n\n```php\nc_include(string filename);\n```\n\nThe filename must be a literal. Don't use the return value.\n\n### c_call\n\n```php\nc_call(\n    string ret_type, string func_name,\n    [string param1_type, string param1_value,\n    [string param2_type, string param2_value,\n    [string...\n);\n```\n\n`type` can be one of `int`, `long`, `double`, `float`, `string`.\n\nexcept values, all types and func_names should be literals.\n\n### c_runf\n\n```php\nc_runf(\n    string ret_type, string expr,\n    [string arg1, [string arg2, [string arg3...\n);\n```\n\nret_type and expr must be literals.\n\nYou can access the arguments using \\${1}, \\${2}, \\${3}... in expr.\n\nAll arguments are `zval*` typed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtlsoft%2Fzephir-c-call","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxtlsoft%2Fzephir-c-call","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxtlsoft%2Fzephir-c-call/lists"}