encxphpgen

command
v0.18.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Command encxphpgen generates the PHP bindings for encx from the Go source of mobile/encxmobile.

It writes the cgo export file, the FFI-parsable C header, the surface manifest and the PHP classes. Every one of those files is a pure function of the parsed Go package, so regenerating is the only way to change them.

The model behind them records which symbols are bound and why the rest are not, their signatures, their doc comments, and the shape of every returned struct including field names, field types and json tags. Change any of those in mobile/encxmobile and the committed files stop matching. Method bodies are not modelled, so rewriting the implementation of a bound method changes nothing here, which is correct: the surface a PHP caller sees is the same.

With -check the command writes nothing and instead reports which files are out of date, which is what CI and the pre-commit hook use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL