Project is based on the development of thinkphp, there is a requirement is to be the project's Lib directory into the Phar package, and then directly replace the package to facilitate the program upgrade, Phar Package I find online tutorials can be called out, but the Phar package into the directory, there is a problem, I also know that routing is not access to the file problem, but I do not know how to progress, it is feasible to do so. (also try to thinkphp the code and LIB into the package--not.) Or make the whole project into a package (there are problems when testing))
Reply content:
Project is based on the development of thinkphp, there is a requirement is to be the project's Lib directory into the Phar package, and then directly replace the package to facilitate the program upgrade, Phar Package I find online tutorials can be called out, but the Phar package into the directory, there is a problem, I also know that routing is not access to the file problem, but I do not know how to progress, it is feasible to do so. (also try to thinkphp the code and LIB into the package--not.) Or make the whole project into a package (there are problems when testing))
After finishing the package, other places referencing lib files needinclude 'phar://'