Skip to content

Package as a PHAR #26

Closed
Closed

Description

@umpirsky

Would be cool to provide phar.

Activity

  1. dantleech commented on Jun 23, 2017

    @dantleech
    Collaborator

    Eventually there will be a self-updating PHAR, but it's early days yet.

  2. dantleech commented on Jun 23, 2017

    @dantleech
    Collaborator

    Also the forthcoming VIM plugin will self-install the application (if that's useful).

  3. umpirsky commented on Jun 24, 2017

    @umpirsky
    Author

    I'm interested into standalone CLI command. I guess other editors will benefit from standalone phar.

  4. dantleech commented on Jul 5, 2017

    @dantleech
    Collaborator

    Should be self-updating and built on travis. Can use https://github.com/humbug/phar-updater

  5. umpirsky commented on Jul 6, 2017

    @umpirsky
    Author

    I used box, but if https://github.com/humbug/phar-updater can provide self-update, that's neat!

  6. dantleech commented on Jul 6, 2017

    @dantleech
    Collaborator

    Was going to use box (and take same approach as with phpbench which uses the phar-updater)

  7. umpirsky commented on Nov 11, 2017

    @umpirsky
    Author

    How to install it? It's not on packagist? :)

  8. dantleech commented on Nov 11, 2017

    @dantleech
    Collaborator

    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 :)

  9. umpirsky commented on Nov 12, 2017

    @umpirsky
    Author

    @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!

  10. drupol commented on Jan 26, 2023

    @drupol
    Contributor

    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!

  11. dantleech commented on Jan 26, 2023

    @dantleech
    Collaborator

    yes I think a PHAR would be a good idea, especially now that Phpactor is a monolithic project with no extensiblity.

  12. drupol commented on Jan 26, 2023

    @drupol
    Contributor

    Cool, let me know here or on Mastodon when it's ready and I'll package it in Nix !

  13. dantleech commented on Jan 26, 2023

    @dantleech
    Collaborator

    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?

  14. drupol commented on Jan 26, 2023

    @drupol
    Contributor

    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.

  15. dantleech commented on Jan 26, 2023

    @dantleech
    Collaborator

    hm you still need to download the PHAR? is there a difference between that and git clone && composer install in anycase agree it's better a a PHAR.

  16. drupol commented on Jan 26, 2023

    @drupol
    Contributor

    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.

  17. changed the title [-]Global installation[/-] [+]Package as a PHAR[/+] on Apr 22, 2023
  18. pinned this issue on Apr 22, 2023
  19. dantleech commented on May 29, 2023

    @dantleech
    Collaborator

    the next Phpactor release will come with a PHAR #2281

  20. unpinned this issue on May 29, 2023
  21. drupol commented on May 29, 2023

    @drupol
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions