Pol Dellaiera on Nostr: I just added a new feature in the Nix PHP builder that will create the proper PHP ...
I just added a new feature in the Nix PHP builder that will create the proper PHP environment based on the `composer.json` file. That feature is a work in progress, but works pretty fine already.
Basically, the idea is to read the `composer.json`, extract the required extensions and instantiate a PHP environment containing those extensions.
Inferring the adequate PHP version to use could be a nice to have.
Find the code and examples at:
https://github.com/loophp/nix-php-composer-builder/#extra-work-in-progressPublished at
2023-08-06 09:32:17Event JSON
{
"id": "b6e7423723ab93c2bb76161a710a032d5de6ff4a2d6a1c5735ce0661a774bb8f",
"pubkey": "d6fdbc818f6916598111ae476566482fb98d4e0dae7f2f7480cf261c797ef3fa",
"created_at": 1691314337,
"kind": 1,
"tags": [
[
"proxy",
"https://mathstodon.xyz/users/Pol/statuses/110841976414167056",
"activitypub"
]
],
"content": "I just added a new feature in the Nix PHP builder that will create the proper PHP environment based on the `composer.json` file. That feature is a work in progress, but works pretty fine already.\nBasically, the idea is to read the `composer.json`, extract the required extensions and instantiate a PHP environment containing those extensions.\nInferring the adequate PHP version to use could be a nice to have.\nFind the code and examples at: https://github.com/loophp/nix-php-composer-builder/#extra-work-in-progress",
"sig": "cd30bccc026ef87c428e69bedd205ee21dd2e683a2178d0bb4adf0581ee0ae804f29dede3f64e04d72b5bc4454a31ae026e103be2dbbbd0394fe1fa2e5b13590"
}