Reference

slice2php(1)

The Slice to PHP compiler.

NAME

slice2php - The Slice to PHP compiler.

SYNOPSIS

slice2php [options] [files]

DESCRIPTION

slice2php compiles Slice files to PHP. The macro __SLICE2PHP__ is defined during this compilation.

Full documentation for slice2php is available online at:
https://doc.zeroc.com/ice/3.7/language-mappings/php-mapping/client-side-slice-to-php-mapping/slice2php-command-line-options

OPTIONS

-h, --help

Displays a help message.

-v, --version

Displays the compiler version.

-DNAME

Defines the preprocessor symbol NAME.

-DNAME=DEF

Defines the preprocessor symbol NAME with the value DEF.

-UNAME

Undefines the preprocessor symbol NAME.

-IDIR

Add the directory DIR to the search path for #include directives.

-E

Print the preprocessor output on stdout.

--output-dir DIR

Place the generated files into directory DIR.

-d, --debug

Print debug information showing the operation of the Slice parser.

--depend

Print dependency information to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.

--depend-xml

Print dependency information in XML format to standard output by default, or to the file specified by the --depend-file option. No code is generated when this option is specified.

--depend-file FILE

Directs dependency information to the specified file. The output format depends on whether --depend or --depend-xml is also specified.

--validate

Checks the provided command-line options for correctness, and does not generate any code.

--all

Generate code for all Slice definitions, including those from included files.

--no-namespace

Generate code without support for PHP namespaces (deprecated).

--checksum CLASS

Generate checksums for Slice definitions.

--php5 CLASS

Generate PHP5 compatible code.

SEE ALSO

slice2cpp(1), slice2cs(1), slice2java(1), slice2js(1), slice2matlab(1), slice2objc(1), slice2py(1), slice2rb(1), slice2swift(1)

History

--all since Debian 9 (Stretch); --checksum since Debian 9 (Stretch); --debug since Debian 9 (Stretch); --depend since Debian 10 (Buster); --depend-file since Debian 10 (Buster); --depend-xml since Debian 10 (Buster); --help since Debian 9 (Stretch); --no-namespace since Debian 10 (Buster); --output-dir since Debian 9 (Stretch); --php5 since Debian 13 (Trixie); --validate since Debian 10 (Buster); --version since Debian 9 (Stretch); -DNAME since Debian 9 (Stretch); -E since Debian 9 (Stretch); -IDIR since Debian 9 (Stretch); -UNAME since Debian 9 (Stretch); -d since Debian 9 (Stretch); -h since Debian 9 (Stretch); -v since Debian 9 (Stretch).

--ice until Debian 9 (Stretch); --namespace until Debian 9 (Stretch); --underscore until Debian 9 (Stretch); -n until Debian 9 (Stretch).