slice2php(1)
โจ slice2php โ the Slice-to-PHP compiler โจ
okay so bestie, buckle up ๐ this is slice2php(1), straight out of your friendly neighbourhood General Commands Manual. she takes your Slice files and turns them into PHP. that's the whole vibe. let's get into it ๐
๐ธ NAME ๐ธ
slice2php โ literally the Slice to PHP compiler. that's her. that's the girl. ๐
๐ฆ SYNOPSIS ๐ฆ
slice2php [options] [files]
options first, files after. classic. iykyk ๐
๐ DESCRIPTION ๐
slice2php compiles Slice files to PHP, no cap. while it's doing its thing, the macro __SLICE2PHP__ gets defined during the compilation โ so if your Slice code is out here asking "am i being processed by slice2php rn?", the answer is yes bestie ๐ซถ
the full documentation for slice2php lives online at:
https://doc.zeroc.com/ice/3.7/language-mappings/php-mapping/client-side-slice-to-php-mapping/slice2php-command-line-options
(it's a long URL, i know, i know ๐ญ she's giving "wrapped across two lines" energy but we keep it exact, periodt.)
โจ OPTIONS โจ
okay this is the part where we go through every single one because we do not skip. not one. ๐
-h,--helpโ shows you a help message. the "hello, what do you even do" button ๐-v,--versionโ spills the compiler version. let you know which era of slice2php you're dealing with โจ-DNAMEโ defines the preprocessor symbolNAME. like, boom, she exists now ๐-DNAME=DEFโ defines the preprocessor symbolNAME, but this time with the valueDEF. same girl, more lore ๐-UNAMEโ undefines the preprocessor symbolNAME. not me un-defining her ๐ญ-IDIRโ adds the directoryDIRto the search path for#includedirectives. so when your includes are lost, she knows where to look ๐ง-Eโ prints the preprocessor output onstdout. just the preprocessed tea, nothing else ๐--output-dir DIRโ places the generated files into the directoryDIR. where the babies get put ๐-d,--debugโ prints debug information showing the operation of the Slice parser. she's narrating her own life fr fr ๐ฅ--dependโ prints dependency information to standard output by default, or to the file specified by the--depend-fileoption. no code is generated when this option is specified. so like, just the deps, not the goods ๐--depend-xmlโ prints dependency information in XML format to standard output by default, or to the file specified by the--depend-fileoption. no code is generated when this option is specified either. same deal, but make it XML ๐ธ--depend-file FILEโ directs dependency information to the specified file. the output format depends on whether--dependor--depend-xmlis also specified. so she's flexible, she reads the room ๐ซถ--validateโ checks the provided command-line options for correctness, and does not generate any code. vibe check only, no output ๐--allโ generates code for all Slice definitions, including those from included files. everybody eats, not just the main characters ๐ฝ๏ธ--no-namespaceโ generates code without support for PHP namespaces. deprecated, bestie, so tread carefully โ ๏ธ--checksum CLASSโ generates checksums for Slice definitions. math girlies rise up ๐งฎโจ--php5 CLASSโ generates PHP5 compatible code. vintage, retro, throwback vibes ๐
๐ SEE ALSO ๐
go bother her sisters, they're all iconic in their own way:
slice2cpp(1)slice2cs(1)slice2java(1)slice2js(1)slice2matlab(1)slice2objc(1)slice2py(1)slice2rb(1)slice2swift(1)
and that's the whole page, bestie!! ๐โจ signed off with love from the General Commands Manual, version slice2php(1), no date attached because this page is timeless ๐
๐ mwah ๐
๐ฆ where this page comes from
- arch rolling: zeroc-ice 3.7.10-3 ยท GPL-2.0-only AND LicenseRef-ICE
- debian trixie: zeroc-ice-compilers 3.7.10-3.1 ยท GPL-2.0+exceptions
- ubuntu noble: zeroc-ice-compilers 3.7.10-2.1build1 ยท GPL-2.0+exceptions
- ubuntu questing: zeroc-ice-compilers 3.7.10-3.1
- ubuntu resolute: zeroc-ice-compilers 3.7.10-4build2 ยท GPL-2.0+exceptions
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms