The Slice-to-PHP compiler, slice2php, offers the following command-line options in addition to the standard options described in
Section 4.20:
For each Slice file X.ice,
slice2php generates PHP code into a file named
X.php in the output directory. The default output directory is the current working directory, but a different directory can be specified using the
‑‑output‑dir option.
It is important to understand how slice2php handles include files. In the absence of the
‑‑all option, the compiler does not generate PHP code for Slice definitions in included files. Rather, the compiler translates Slice
#include statements into PHP
require statements in the following manner:
As a result, you can use ‑I options to tailor the
require statements generated by the compiler in order to avoid absolute path names and match the organizational structure of your application’s source files.