diff --git a/content/meta/index.json b/content/meta/index.json index 3768dbc65..052f7dff4 100644 --- a/content/meta/index.json +++ b/content/meta/index.json @@ -6535,5 +6535,12 @@ ], "path_alias.646abc92-dd73-4152-852e-d1e498000abe": [ "node.3c851569-9655-4936-aed7-6f965aa6b4d1" + ], + "node.189d6034-5777-4ee1-93c1-20e255b6a32e": [ + "user.b8966985-d4b2-42a7-a319-2e94ccfbb849", + "node.c74de3cf-5362-4d08-935a-a9d0d22fcb94" + ], + "path_alias.2fe5f520-3f6f-41a8-a05f-d0be257a856a": [ + "node.189d6034-5777-4ee1-93c1-20e255b6a32e" ] } \ No newline at end of file diff --git a/content/node.189d6034-5777-4ee1-93c1-20e255b6a32e.json b/content/node.189d6034-5777-4ee1-93c1-20e255b6a32e.json new file mode 100644 index 000000000..e05ae2907 --- /dev/null +++ b/content/node.189d6034-5777-4ee1-93c1-20e255b6a32e.json @@ -0,0 +1,98 @@ +{ + "uuid": [ + { + "value": "189d6034-5777-4ee1-93c1-20e255b6a32e" + } + ], + "langcode": [ + { + "value": "en" + } + ], + "type": [ + { + "target_id": "daily_email", + "target_type": "node_type", + "target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7" + } + ], + "revision_timestamp": [ + { + "value": "2025-06-27T09:02:29+00:00" + } + ], + "revision_uid": [ + { + "target_type": "user", + "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" + } + ], + "revision_log": [], + "status": [ + { + "value": true + } + ], + "uid": [ + { + "target_type": "user", + "target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849" + } + ], + "title": [ + { + "value": "PHP and Nix shells" + } + ], + "created": [ + { + "value": "2025-06-24T09:01:52+00:00" + } + ], + "changed": [ + { + "value": "2025-06-27T09:02:29+00:00" + } + ], + "promote": [ + { + "value": false + } + ], + "sticky": [ + { + "value": false + } + ], + "default_langcode": [ + { + "value": true + } + ], + "revision_translation_affected": [ + { + "value": true + } + ], + "path": [ + { + "alias": "", + "pid": null, + "langcode": "en" + } + ], + "body": [ + { + "value": "What if you needed to run or test multiple versions of PHP?\r\n\r\nWould you use options like virtual machines or containers, which install full operating systems, just to get access to different versions of the same package?\r\n\r\nWould you need to create a different VM or container for each version of PHP?\r\n\r\nAnother approach is to use Nix or, more specifically, nixpkgs - a package manager with more than 120,000 packages that can be installed on macOS or any Linux distribution.\r\n\r\nThe [current stable release][0] (25.05) has 8.4.8, 8.3.22, 8.2.28 and 8.1.32 available, as well as other packages like PHPUnit and Phpactor.\r\n\r\nYou can add any of these versions to a Nix configuration file, or create temporary shells with the version you need by running simple commands like `nix shell nixpkgs#php83`.\r\n\r\nIn that shell, you have access to PHP 8.3.\r\n\r\nOnce you leave it, you can re-run the command with a different version of PHP.\r\n\r\nAnd it works with other languages such as nodejs, by running similar commands like `nix shell nixpkgs#nodejs_22`, making it even more powerful.\r\n\r\n[0]: https:\/\/search.nixos.org\/packages?channel=25.05&query=php", + "format": "markdown", + "processed": "
What if you needed to run or test multiple versions of PHP?<\/p>\n
Would you use options like virtual machines or containers, which install full operating systems, just to get access to different versions of the same package?<\/p>\n
Would you need to create a different VM or container for each version of PHP?<\/p>\n
Another approach is to use Nix or, more specifically, nixpkgs - a package manager with more than 120,000 packages that can be installed on macOS or any Linux distribution.<\/p>\n