composer設定全域性輔助函式

參考下面的程式碼,其中files中寫的就是包含全域性輔助函式的檔案。

"autoload": {
        "classmap": [
            "src/"
        ], "files": [
            "src/tools.php"
        ]
}

Leave a Reply

Your email address will not be published. Required fields are marked *

Captcha Code