Skip to content

Building

JulianFun123 edited this page Nov 17, 2019 · 2 revisions

IMPORTANT phar.readonly have to be Off (or 0) in the php.ini! (On linux /etc/php/7.3/cli/php.ini)

You can build projects into a phar file!

php uppm build

Configuration

main is required or the project won't be build properbly!

ignored_directories and ignored_files will be ignored by the builder!

{
    "name": "uppm",
    "version": "1.0",
    ...

    "build": {
        "main": "main.php",
        "output": "test.phar",
        "src": "src",
        "ignored_directories": [
            ".idea"
        ],
        "ignored_files": [
            "testfile.php"
        ]
    }
}

Tip The default value of src is . (Current Directory) and the default value of output is (project name)-(version).phar

You could also check out Ulole Framework

Clone this wiki locally