librelist archives

« back to archive

Creating Phar archive

Creating Phar archive

From:
William Martin
Date:
2011-09-02 @ 08:31
Hi,

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]
    phar.readonly = Off

William MARTIN