PHPAB(1)
π PHPAB(1) β the phpab glow-up π
okay bestie, gather round, because this is the phpab command line interface manual β it lives in the User Commands corner of your manual pages (you know, section 1, where all the main character binaries hang out) πΈ. It's giving β¨autoloader generator energyβ¨ and honestly? we're obsessed.
β¨ SYNOPSIS β¨
phpab [switches] <directory1|file1|/path/to/composer.json>
[...<directoryN|fileN>]
like, you hand it a directory, or a file, or a whole composer.json β and you can keep stacking more of them, no cap π«Ά
π DESCRIPTION π
phpab %development% - Copyright (C) 2009 - 2025 by Arne Blankerts and Contributors
periodt. that's the line, we keep it exactly π and now, the flags, because there are thirty-six of them and every single one is coming with us π
π OPTIONS π
-i,--includeβ the file pattern you wanna include (default:*.php) β yes babe, default is literally*.phpπ-e,--excludeβ the file pattern you wanna exclude π--blacklistβ blacklist a classname or namespace (wildcards supported, so go feral with*) β--whitelistβ whitelist a classname or namespace (wildcards supported too, iykyk) π-b,--basedirβ the basedir for filepaths, so your paths stop being dramatic π¦-t,--templateβ path to the code template you wanna use π§-o,--outputβ output file for the generated code (default:STDOUT, so it just yells into your terminal π)-p,--pharβ create a phar archive (requires-o, bestie, it needs somewhere to go) π₯--allβ include all files in the given directory when creating a phar π«Ά--aliasβ specify an explicit internal phar alias filename (default: the output filename) β¨--hashβ force a given hash algorithm (SHA-1,SHA-256orSHA-512) (requires-p, and it conflicts with--keyβ pick a lane π )--bzip2β compress the phar archive using bzip2 (requires-p) (bzip2 required, like, actually required) πΈ--gzipβ compress the phar archive using gzip (requires-p) (gzip required) π--keyβ OpenSSL key file to use for signing the phar archive (requires-p) (openssl required) π-c,--compatβ generate PHP 5.2 compatible code (yes, we're time traveling, slay) β³-s,--staticβ generate a static require file π-w,--warmβ generate a static opcache warming file π₯--resetβ add an opcache reset call when generating the opcache warming file β»οΈ-1,--prependβ register as the first autoloader (prepend to the stack; default: append) π-d,--no-exceptionβ do not throw an exception on a registration problem (default: throw exception β so by default it's gonna scream, be warned π)-n,--nolowerβ do not lowercase classnames for case insensitivity π-q,--quietβ quiet mode, do not output any processing errors or information π€«--cache <file>β enable caching and set the filename to use for cache storage ποΈ--followβ enables following symbolic links (not compatible with phar mode β fr fr, don't) π--formatβ dateformat string for the timestamp ποΈ--linebreakβ linebreak style (CR,CRLForLF, default:LF) π--indentβ string used for indenting, or a number of spaces (default:16(compat12) spaces) π--tolerantβ ignore class redeclarations in the same file π«Ά--onceβ userequire_onceinstead ofrequirewhen creating a static require file β¨--trustingβ do not check the mimetype of files prior to parsing (this is the default) π--paranoidβ do check the mimetype of files prior to parsing π΅οΈ--var name=fooβ assign the valuefooto the variablename, to be used in (custom) templates π--lintβ run lint on the generated code and exit π§Ό--lint-phpβ PHP binary to use for linting (default:/usr/bin/phporc:\php\php.exe) π-h,--helpβ prints this usage information π₯°-v,--versionβ prints the version and exits π
ngl bestie, if you pass--hashand--keytogether, that's a conflict β the manual says so, and we respect the manual π
and that's the whole vibe check, we ate and left no crumbs πβ¨ version phpab 1.29.4, dated December 2025, byeeee π¦π
π¦ where this page comes from
- ubuntu resolute: phpab 1.29.4-1 Β· BSD-3-Clause
- ubuntu stonking: phpab 1.29.4-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms