PHPackages                             xtlsoft/zephir-c-call - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. xtlsoft/zephir-c-call

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xtlsoft/zephir-c-call
=====================

An extension that allows you to call C functions in Zephir.

v0.1.0-stable(6y ago)13MITPHP

Since Jul 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/xtlsoft/zephir-c-call)[ Packagist](https://packagist.org/packages/xtlsoft/zephir-c-call)[ RSS](/packages/xtlsoft-zephir-c-call/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Zephir C Call
=============

[](#zephir-c-call)

An extension that allows you to call C functions in Zephir.

Installation
------------

[](#installation)

If your zephir is installed in project scope:

```
composer require xtlsoft/zephir-c-call
```

If your zephir is installed in global scope:

```
composer g require xtlsoft/zephir-c-call
```

If your zephir was installed as zephir.phar:

You need to re-pack the zephir.phar file.

Usage
-----

[](#usage)

You can call `c_include`, `c_call`, `c_runf` functions from Zephir.

### c\_include

[](#c_include)

```
c_include(string filename);
```

The filename must be a literal. Don't use the return value.

### c\_call

[](#c_call)

```
c_call(
    string ret_type, string func_name,
    [string param1_type, string param1_value,
    [string param2_type, string param2_value,
    [string...
);
```

`type` can be one of `int`, `long`, `double`, `float`, `string`.

except values, all types and func\_names should be literals.

### c\_runf

[](#c_runf)

```
c_runf(
    string ret_type, string expr,
    [string arg1, [string arg2, [string arg3...
);
```

ret\_type and expr must be literals.

You can access the arguments using ${1}, ${2}, ${3}... in expr.

All arguments are `zval*` typed.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2532d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16159830?v=4)[Tianle Xu](/maintainers/xtlsoft)[@xtlsoft](https://github.com/xtlsoft)

---

Top Contributors

[![xtlsoft](https://avatars.githubusercontent.com/u/16159830?v=4)](https://github.com/xtlsoft "xtlsoft (4 commits)")

### Embed Badge

![Health badge](/badges/xtlsoft-zephir-c-call/health.svg)

```
[![Health](https://phpackages.com/badges/xtlsoft-zephir-c-call/health.svg)](https://phpackages.com/packages/xtlsoft-zephir-c-call)
```

###  Alternatives

[kylekatarnls/laravel-carbon-2

Carbon 2 adapter for Laravel

631.2M1](/packages/kylekatarnls-laravel-carbon-2)[symfony/ux-lazy-image

Lazy image loader and utilities for Symfony

36346.4k](/packages/symfony-ux-lazy-image)[pantheon-systems/pantheon-mu-plugin

Pantheon mu-plugin for WordPress sites.

15884.6k](/packages/pantheon-systems-pantheon-mu-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
