Skip to content
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

Distribute through phive #5

Closed
szepeviktor opened this issue Apr 1, 2019 · 10 comments
Closed

Distribute through phive #5

szepeviktor opened this issue Apr 1, 2019 · 10 comments
Labels
help wanted Extra attention is needed

Comments

@szepeviktor
Copy link
Contributor

in a PHAR file phpinsights would not conflict with the project's deps

https://github.com/phar-io/phive

@nunomaduro
Copy link
Owner

No plans at the moment.

@szepeviktor
Copy link
Contributor Author

szepeviktor commented May 8, 2019

@nunomaduro I'm very sad.

Modern PHP tools tend to go PHAR-only, e.g. PHPStan

There would be only these steps:

  • add 1 phive config
  • release process: add a phar file
  • release process: add a GPG signature

What do you think?

@nunomaduro nunomaduro reopened this May 8, 2019
@nunomaduro
Copy link
Owner

nunomaduro commented May 8, 2019 via email

@mihai-stancu
Copy link

@nunomaduro regarding the help wanted tag, I'm guessing this would mean implementing the necessary configuration for humbug/box building the phar itself, signing it and implementing the necessary phive configuration?

Do you forsee anything else? Automated build steps to be added? The signature would still need your manual input as far as I can imagine.

I haven't done this before but i'd give it a shot.

@szepeviktor
Copy link
Contributor Author

@mihai-stancu If you get Box working I'll add the rest.

@mihai-stancu
Copy link

mihai-stancu commented Mar 22, 2021

Conundrum:

  • php-scoper moves every class into a unique namespace
  • ./your-project/phpinsights.php -- (the configuration file) references the original class names to add / remove metrics and sniffs et.al..

./your-project/phpinsights.php isn't a file you can patch at box compile time, it needs to be. patched at runtime to work.

@szepeviktor
Copy link
Contributor Author

Why do we need php-scoper?

@mihai-stancu
Copy link

I noticed that the project uses Reflection in a few places.
Reflection loads the class via autoloader before it's parsed.
We could have class name collisions if the autoloader loads the same class name as an internal name from inside the PHAR.

@nunomaduro
Copy link
Owner

Let's re-open this issue, eventually if someone decides to work on this.

@JoyceBabu
Copy link

Let's re-open this issue, eventually if someone decides to work on this.

@nunomaduro Did you really intend to close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants