Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Michael Babker

@mbabker@mastodon.social
mastodon 4.8.0-nightly.2026-10-06
  • Open on mastodon.social

Accumulator of low activity social media accounts. Possibly finding new ways to finalize PHP libraries. Opinions, while my own, generally aren’t popular.

0 Followers
0 Following
6 Posts
Joined September 04, 2023
Blog:
https://michaels.website
GitHub:
https://github.com/mbabker
Work:
https://happydog.digital
Open post
Michael Babker @mbabker@mastodon.social
· 5mo ago
Replying to
@waterkip@defcon.social Admittedly I can't remember the last time I used create-project, but I know once the platform configs were in place the last time I needed to deal with this stuff, it all worked smoothly. It just sounds like the getting started step is much more painful than it needs to be.
0
0
0
0
Open post
Michael Babker @mbabker@mastodon.social
· 5mo ago
Replying to

@waterkip@defcon.social Follow https://github.com/composer/composer/issues/12691 since this looks like the exact same scenario you've described.

Looks like a possible Docker-free workaround could be using the --no-install flag with composer create-project, editing requirements and platform config, then installing dependencies.

IMO, it's fair that Composer assumes the currently running PHP version as a requirement for new projects, but it should be configurable (and seems Jordi agrees).

GitHub

Ability to specify platform requirement from command line · Issue #12691 · composer/composer

Use-case I want to have my computer clean of local PHP installations and use Docker for everything without too much hassle, so I try to use the official Composer image to install the project templa...

0
11
0
0
Open post
Michael Babker @mbabker@mastodon.social
· 5mo ago
Replying to
@waterkip@defcon.social The auto-generated file sets the PHP version check based on the installed packages (https://github.com/composer/composer/blob/c53ccd1f5b7dc936848af41fe103a20a758e9df5/src/Composer/Autoload/AutoloadGenerator.php#L816-L861) and not composer.json. So without platform overrides, running 8.4 & deps pulling 8.4+ packages, that seems like expected behavior. The pain point gets back to the "I need to get the platform config set before Composer installs anything". Reading the code, it seems like the no-install flag should let you skip the problematic step here if it's not generating anything.
GitHub

composer/src/Composer/Autoload/AutoloadGenerator.php at c53ccd1f5b7dc936848af41fe103a20a758e9df5 · composer/composer

Dependency Manager for PHP. Contribute to composer/composer development by creating an account on GitHub.

0
9
0
0
Open post
Michael Babker @mbabker@mastodon.social
· 5mo ago
Replying to
@waterkip@defcon.social I just tried a new setup on my 8.4 local - https://gist.github.com/mbabker/289e64d06a4fdb72d916705bbbdb66cd - Managed to get the platform stuff to behave well enough for me. (I've done enough OSS stuff to know that "just upgrade" isn't always the answer)
Create L12 Project
Gist

Create L12 Project

Create L12 Project. GitHub Gist: instantly share code, notes, and snippets.

0
3
0
0
Open post
Michael Babker @mbabker@mastodon.social
· 5mo ago
Replying to

@waterkip@defcon.social I get the feeling the answer to that one ("run minimal PHP") is you being told "use the platform override config and --prefer-lowest flag liberally". And probably very tight dependency constraints (pinned versions instead of ranges, which if this is an application, seems fair). I get the feeling a more generalized "just assume the minimum supported version" mode isn't one they'd want to add considering there's something in place to do something very close.

0
1
0
0
Open post
Michael Babker @mbabker@mastodon.social
· 5mo ago
Replying to

@waterkip@defcon.social I needed no-scripts otherwise the post-create-project-cmd stuff was still firing off. I just did no-plugins also to make sure nothing that could've needed a composer install ran.

Looking at the diff, it looks like they changed some PDO stuff to the namespaced versions added in 8.4, but also added the Symfony PHP 8.4 polyfill to the dependencies, so that shouldn't have caused an issue (unless you're in an environment where ext-pdo_mysql isn't installed?)

0
1
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 10:54:23 UTC