Creating Phar archive
- William Martin
- 2011-09-02 @ 08:31
This is a memo about creating a phar package of your photon project.
With the default PHP configuration file, Phar files are readable only.
So the hnu command to create package will failed like this:
$ hnu package foo
Error: creating archive "foo.phar" disabled by INI setting
Type "hnu --help" to get help.
Type "hnu <command> --help" to get help on specific command.
You need to update your PHP configuration, like this:
phar.readonly = Off