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. xtlsoft/zephir-c-call

ActiveLibrary

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 today

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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

2481d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0dbd34d2c8c98259a3e7bd7654b92b663eb0920a3c8259be852908ff6e581e14?d=identicon)[xtlsoft](/maintainers/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

[techpivot/phalcon-ci-installer

Composer integration for PHP applications to install the Phalcon framework as an extension in the PHP runtime for various hosted CI services including TravisCI, CircleCI, Scrutinizer, Shippable and Codeship.

26130.7k8](/packages/techpivot-phalcon-ci-installer)[zachleigh/yarak

Laravel inspired devtools for Phalcon. Database migrations, model factories and database seeders.

293.8k](/packages/zachleigh-yarak)

PHPackages © 2026

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