-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Phar file #61
Comments
We discussed the phar file in issue #42. We would love to hear your arguments on why we should add a phar file. |
May be, that is the reason why you need to create a phar file instead of global composer package |
@ihsanudin Just discussed the topic with @aderuwe: That is indeed a valid point. If you want to speed up this feature, feel free to create a PR. Maybe @igormukhingmailcom has the time to help out? |
I've been looking into this one this morning, we need to clean up a couple of bits before we can use Box to generate a phar for us. Found Issues:
|
We should also keep security in mind: |
Hi, A Phar file is a must have for your project! Think about composer, we use it because it's simple to get it everywhere. With the current project, I failed trying to create a Phar file, because of the many hardcoded absolute/relative paths. |
Hi @Kmelia, We did also bump into the same issues as you trying to create a phar. I don't thinkt his will be easy and we'll need to rewrite some code for this feature. We already support many use-cases: local, global, CI, ... and need to make sure that all these cases still work. |
Basic Tutorial |
Updates? |
No. There are some issues with the different type of paths which need to be solved before we can create a phar file. The idea is to make every path relative to the config file. This is hard to get right since we are supporting a lot of different installation types, project structures, OS, ... already. Currently I don't have the time to rework that part of the application, so unless somebody else picks it up, I don't think phar support will be launched any time soon. |
In depth tutorial by @theofidry https://medium.com/@tfidry/create-and-deploy-secure-phars-c5572f10b4dd |
would it be a good idea to release a phar that supports only one os and then rolling out updates with more os's? |
I'm also willing to have a Grumphp PHAR available. I'm looking into it, but I run into the same issue as @adam-paterson . |
I am finishing up working on the paths. See #644. There are some issues:
I guess it's also better not to include the phar generation code in the repo. But instead use a compiler / shim package as phpstan does: This will give us the benifit that we don't have to worry about dependencies in this project to much and we can upgrade these more easily. |
Oh great ! What's the issue with the PathHelper ? And yes, it would be very nice to use grumphp shim indeed :-) |
The paths helper is way to opinionated about your project strcture and is pretty much a legacy of the first grumphp version. As you can see in the issues section, there are a lot of paths related issues. Most of them are solved in the new system. Not completely there yet though :) |
Good luck mate :-) |
I've created a shim package based on the PR above. https://github.com/phpro/grumphp-shim Feel free to test it out and to improve it. The composer plugin doesn't work yet and needs to be revisited, but that phar should be useable. ("On my system" anyways :) ) |
Add phar file for simplicity
The text was updated successfully, but these errors were encountered: