I am building a web application that will accept 3rd party code to be deployed. I was wondering (and a few searches in Google didn't show anything).
On what scope does a PHAR archive run? Does it have application access or it is contained inside the scope of the archive?
As an explaining example:
If I have in Application a config file (for simplicity's sake) will the PHAR be able to reach it?
Is there a way to share objects between PHAR and the Application code? Like using a singleton or something similar.
There are no special restrictions of files in phars, compared to "normal" files on the harddisk.
You can include and access files outside the phar without problems.
Your application will behave as before as long as you have the include path/autoloader setup correctly.