slice2php(1) The Slice to PHP compiler.


slice2php [options] [files]


slice2php compiles Slice files to PHP.

Full documentation for slice2php is available online at:


-h, --help

Displays a help message.

-v, --version
Displays the compiler version.


Defines the preprocessor symbol NAME.


Defines the preprocessor symbol NAME with the value DEF.


Undefines the preprocessor symbol NAME.


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


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.


Permit use of the normally reserved prefix Ice for identifiers. Use this option only when compiling the source code for the Ice run time.


Permit use of underscores in Slice identifiers.


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

-n, --namespace

Generate code using PHP namespaces. Note that namespaces are only supported in PHP 5.3 or later. Also note that the Ice extension for PHP must be built with namespace support enabled.

--checksum CLASS

Generate checksums for Slice definitions.