15.62. php

Possible arguments: (none), phpize, ext, zend, build, cli, cgi, mod, web, embed

Provide support for PHP. Add a runtime dependency on the default PHP version, lang/php56.

phpize

Use to build a PHP extension.

ext

Use to build, install and register a PHP extension.

zend

Use to build, install and register a Zend extension.

build

Set PHP also as a build-time dependency.

cli

Needs the CLI version of PHP.

cgi

Needs the CGI version of PHP.

mod

Needs the Apache module for PHP.

web

Needs the Apache module or the CGI version of PHP.

embed

Needs the embedded library version of PHP.

Variables are used to specify which PHP modules are required, as well as which version of PHP are supported.

USE_PHP

The list of required PHP extensions at run-time. Add :build to the extension name to add a build-time dependency. Example: pcre xml:build gettext

DEFAULT_PHP_VER

Selects which major version of PHP will be installed as a dependency when no PHP is installed yet. Default is 56. Possible values: 55, 56, and 7.

IGNORE_WITH_PHP

The port does not work with PHP of the given version. Possible values: 55, 56, and 7.

All FreeBSD documents are available for download at http://ftp.FreeBSD.org/pub/FreeBSD/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.