ramsey, (edited )
@ramsey@phpc.social avatar

I’ll open a PR to submit these changes upstream, but since my changes are so sweeping, I don’t expect they’ll be accepted any time soon. However, if you’d like to give this a try with asdf, you can use my changes to the asdf-php plugin by adding the plugin like this:

asdf plugin add php <https://github.com/ramsey/asdf-php.git>  

That’s all there is to it. The rest should continue to work as usual. There are tons of changes under the hood, though.

tappenden,

@ramsey I've never used asdf, but it looks totally awesome.

ramsey,
@ramsey@phpc.social avatar

@tappenden It’s not perfect, but it works pretty well. I wish there were pre-built, static binaries for PHP for a variety of platforms because, then, asdf-php would be able to grab those and install them very quickly. As it is, each installation has to build PHP locally and ensure the system has all the proper dependencies already installed.

tappenden,

@ramsey Yeah, I've often wished that.

ramsey,
@ramsey@phpc.social avatar

@tappenden It’s sort of the dream of the “Native” PHP project. They’re using another project that builds the static binaries to include in the distribution, but it’s all in Chinese, so I haven’t been able to read it to figure out how to use it or contribute to it.

Just checked it out while typing this post, and it looks like they’ve had some help from the community for nice presentation and English translation: https://static-php.dev

Looks nice!

tappenden,

@ramsey It's always worth checking who the backers of Chinese (actually, all... but especially Chinese) projects are. We don't need a repeat of Swoole.

tappenden,

@ramsey This looks legit, though, at first glance.

ramsey,
@ramsey@phpc.social avatar

@tappenden I just downloaded one of the binaries into a stock ubuntu:22.04 Docker image (only installed curl to download the binary), and it ran without needing to install anything else.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • DreamBathrooms
  • mdbf
  • tacticalgear
  • magazineikmin
  • thenastyranch
  • rosin
  • everett
  • Youngstown
  • khanakhh
  • slotface
  • ngwrru68w68
  • kavyap
  • cisconetworking
  • InstantRegret
  • megavids
  • osvaldo12
  • GTA5RPClips
  • ethstaker
  • tester
  • Durango
  • normalnudes
  • anitta
  • modclub
  • cubers
  • Leos
  • provamag3
  • JUstTest
  • lostlight
  • All magazines