Add daily email

This commit is contained in:
Oliver Davies 2025-06-27 10:03:46 +01:00
parent 6e7a40976b
commit 9aceba8e24
3 changed files with 132 additions and 0 deletions

View file

@ -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"
]
}

View file

@ -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": "<p>What if you needed to run or test multiple versions of PHP?<\/p>\n<p>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<p>Would you need to create a different VM or container for each version of PHP?<\/p>\n<p>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<p>The <a href=\"https:\/\/search.nixos.org\/packages?channel=25.05&amp;query=php\">current stable release<\/a> (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.<\/p>\n<p>You 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 <code>nix shell nixpkgs#php83<\/code>.<\/p>\n<p>In that shell, you have access to PHP 8.3.<\/p>\n<p>Once you leave it, you can re-run the command with a different version of PHP.<\/p>\n<p>And it works with other languages such as nodejs, by running similar commands like <code>nix shell nixpkgs#nodejs_22<\/code>, making it even more powerful.<\/p>\n",
"summary": ""
}
],
"field_daily_email_cta": [
{
"target_type": "node",
"target_uuid": "c74de3cf-5362-4d08-935a-a9d0d22fcb94"
}
]
}

View file

@ -0,0 +1,27 @@
{
"uuid": [
{
"value": "2fe5f520-3f6f-41a8-a05f-d0be257a856a"
}
],
"langcode": [
{
"value": "en"
}
],
"path": [
{
"value": "\/node\/189d6034-5777-4ee1-93c1-20e255b6a32e"
}
],
"alias": [
{
"value": "\/daily\/2025\/06\/24\/php-and-nix-shells"
}
],
"status": [
{
"value": true
}
]
}