zephir compile

Compile a Zephir extension

  • —backend=BACKEND: Backend used to build extension (default: ZendEngine3)
  • —dev: Build the extension in development mode
  • —no-dev: Build the extension in production modeUsing —dev option will force building and installing the extension in development mode (debug symbols and no optimizations). An extension compiled with debugging symbols means you can run a program or library through a debugger and the debugger’s output will be user friendlier. These debugging symbols also enlarge the program or library significantly.

NOTE: Zephir development mode will be enabled silently if your PHP binary was compiled in a debug configuration.

In some cases, we would like to get production ready extension even if the PHP binary was compiled in a debug configuration. Use —no-dev option to achieve this behavior.

Additionally, any of the options available under extra in the configuration file can also be passed as options, here, such as —export-classes and —indent=tabs.