Die Klasse Phar
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL phar >= 1.0.0)
Einführung
Die Klasse Phar bietet ein High-Level-Interface zum Zugreifen auf und
Erstellen von Phar-Archiven.
Klassenbeschreibung
public __construct(
string $filename
,
int $flags
= FilesystemIterator::SKIP_DOTS | FilesystemIterator::UNIX_PATHS,
?string $alias
= null
)
}
Inhaltsverzeichnis
cornelius dot howl at gmail dot com ¶13 years ago
Onion utility can help you compile a package into a phar file (executable script file or library file)
https://github.com/c9s/Onion
$ onion.phar compile \
--executable \
--classloader \
--bootstrap scripts/onion.embed \
--lib src \
--lib ../CLIFramework/src \
--lib ../GetOptionKit/src \
--output onion.phar
halfdan ¶16 years ago
Hey, I thought writing a small article about the upcoming functionality and appearance of Phar in php5.3 might be a nice thing. So I did this at http://geekmonkey.org/articles/PHP_Archives - hope to save others some time when working with Phar.