Thinkphp’s Lib directory was converted into phar package and replaced by Lib directory. Problems were encountered during integration.


The project was developed based on thinkphp. Now there is a requirement to convert the Lib directory of the project into a phar package and replace this package directly in order to facilitate the program upgrade. I can already type out the phar package by looking for an online tutorial. However, there is a problem when putting the phar package into the directory inside. I also know that the file cannot be accessed by route, but I do not know how to progress. Is this feasible? (Also try to put ThinkPHP’s code and Lib into the package together-no way. Or put the whole project into one package (there are also problems during testing))

After typing the package, other places refer to the files in Lib, which is requiredinclude 'phar://'