slice2php(1)

๐Ÿ“ฆ
version 3.7.10 ยท 4 versions
, in arch rolling, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute

โœจ 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 symbol NAME. like, boom, she exists now ๐Ÿ’…
  • -DNAME=DEF โ€” defines the preprocessor symbol NAME, but this time with the value DEF. same girl, more lore ๐ŸŽ€
  • -UNAME โ€” undefines the preprocessor symbol NAME. not me un-defining her ๐Ÿ˜ญ
  • -IDIR โ€” adds the directory DIR to the search path for #include directives. so when your includes are lost, she knows where to look ๐Ÿงš
  • -E โ€” prints the preprocessor output on stdout. just the preprocessed tea, nothing else ๐Ÿ“
  • --output-dir DIR โ€” places the generated files into the directory DIR. 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-file option. 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-file option. 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 --depend or --depend-xml is 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:


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