You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although I don't think the current (last check) composer global installation method is a sustainable model, and would rather recommend simply checking it out somewhere and symlinking it at /usr/local/bin/phpactor. But, if global installation works now, then great :)
@dantleech Thanks, I did do that, just tough packagist availability would attract more users. Thanks for the tool, class:move is extremely useful when refactoring!
I would like to provide this tool in the Nix distribution (Nix and NixOS).
Is this feature still planned?
It would actually be extremely easy for us if the PHAR could be available.
Well, I may not actively work on it. How would it be different from just git clone etc, not that much difference between git clone and curl in terms of a build action?
In Nix, packages are built in a sandbox, with no internet access, to make sure everything is reproducible at 100% (or trying to) and reduce entropy that may be caused by download stuff on the Internet.
Therefore, since it requires dependencies via Composer, this is obviously not going to work as of today.
Nix has a special function to download things from the internet (fetchurl, fetchFromGitHub, ...) and in order to work, a hash needs to be provided, it's mandatory (see an example on how we do with Composer).
Having a PHAR is a good idea in this case because this is a self contained program that doesn't need to download anything to work.
Reacted by dantleech, Márk Sági-Kazár and Mariusz `shd` Gliwiński
Activity
dantleech commentedon Jun 23, 2017
Eventually there will be a self-updating PHAR, but it's early days yet.
dantleech commentedon Jun 23, 2017
Also the forthcoming VIM plugin will self-install the application (if that's useful).
umpirsky commentedon Jun 24, 2017
I'm interested into standalone CLI command. I guess other editors will benefit from standalone phar.
dantleech commentedon Jul 5, 2017
Should be self-updating and built on travis. Can use https://github.com/humbug/phar-updater
umpirsky commentedon Jul 6, 2017
I used box, but if https://github.com/humbug/phar-updater can provide self-update, that's neat!
dantleech commentedon Jul 6, 2017
Was going to use box (and take same approach as with phpbench which uses the
phar-updater)umpirsky commentedon Nov 11, 2017
How to install it? It's not on packagist? :)
dantleech commentedon Nov 11, 2017
It is now :)
Although I don't think the current (last check) composer global installation method is a sustainable model, and would rather recommend simply checking it out somewhere and symlinking it at
/usr/local/bin/phpactor. But, if global installation works now, then great :)umpirsky commentedon Nov 12, 2017
@dantleech Thanks, I did do that, just tough packagist availability would attract more users. Thanks for the tool,
class:moveis extremely useful when refactoring!drupol commentedon Jan 26, 2023
Hey,
I would like to provide this tool in the Nix distribution (Nix and NixOS).
Is this feature still planned?
It would actually be extremely easy for us if the PHAR could be available.
Thanks!
dantleech commentedon Jan 26, 2023
yes I think a PHAR would be a good idea, especially now that Phpactor is a monolithic project with no extensiblity.
drupol commentedon Jan 26, 2023
Cool, let me know here or on Mastodon when it's ready and I'll package it in Nix !
dantleech commentedon Jan 26, 2023
Well, I may not actively work on it. How would it be different from just git clone etc, not that much difference between
git cloneandcurlin terms of a build action?drupol commentedon Jan 26, 2023
That's the whole thing actually.
In Nix, packages are built in a sandbox, with no internet access, to make sure everything is reproducible at 100% (or trying to) and reduce entropy that may be caused by download stuff on the Internet.
Therefore, since it requires dependencies via Composer, this is obviously not going to work as of today.
Having the PHAR would definitely solve this.
dantleech commentedon Jan 26, 2023
hm you still need to download the PHAR? is there a difference between that and
git clone && composer installin anycase agree it's better a a PHAR.drupol commentedon Jan 26, 2023
Nix has a special function to download things from the internet (fetchurl, fetchFromGitHub, ...) and in order to work, a hash needs to be provided, it's mandatory (see an example on how we do with Composer).
Having a PHAR is a good idea in this case because this is a self contained program that doesn't need to download anything to work.
[-]Global installation[/-][+]Package as a PHAR[/+]dantleech commentedon May 29, 2023
the next Phpactor release will come with a PHAR #2281
drupol commentedon May 29, 2023
Excellent!
If this PR NixOS/nixpkgs#225401 is not merged in the meantime, I'll provide the derivation.
Basically, this PR will provide a builder for any composer based application, see what it's going to be with PHPActor in here: https://github.com/NixOS/nixpkgs/blob/bedfb144215a15895eaf25833b489d6565da7a0a/pkgs/development/tools/phpactor/default.nix