Sebastix on Nostr: GM! ☀️ ☕ It has been a couple of years, but I'm back digging deep into Drupal ...
GM! ☀️ ☕
It has been a couple of years, but I'm back digging deep into Drupal migrations with the awesome Migrate API (
https://www.drupal.org/docs/drupal-apis/migrate-api). Spent quite some hours the last weeks on these migrations:
These migrations are processing 8 years of data from a Laravel application into a Drupal instance.
While working on this project, I got some new insights how I can use the Migrate API to work out a so called source plugin for fetching Nostr events from relays. With the use of
nostrphp (npub1php…ha0j) it won't be that hard actually. One use-case I can image is to use it to archive the events from my personal relay. All the events will be stored as Drupal entities, so I can do with it whatever I would like. #Drupal #PHP
Published at
2024-09-26 07:03:47Event JSON
{
"id": "5006f4efc67bfed46ca2663291c636d2eae0401a381bd294a38671bd26b33631",
"pubkey": "06639a386c9c1014217622ccbcf40908c4f1a0c33e23f8d6d68f4abf655f8f71",
"created_at": 1727334227,
"kind": 1,
"tags": [
[
"t",
"drupal"
],
[
"t",
"php"
],
[
"p",
"0dc2dcb14d89f94b8a1590e178e9fbcb2ef1cb0be175a283842f9dc54787801a",
"",
"mention"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "GM! ☀️ ☕ \n\nIt has been a couple of years, but I'm back digging deep into Drupal migrations with the awesome Migrate API (https://www.drupal.org/docs/drupal-apis/migrate-api). Spent quite some hours the last weeks on these migrations: https://shares.sebastix.dev/xDO7WnHo.png\n\nThese migrations are processing 8 years of data from a Laravel application into a Drupal instance. \nWhile working on this project, I got some new insights how I can use the Migrate API to work out a so called source plugin for fetching Nostr events from relays. With the use of nostr:npub1phpdev2d38u5hzs4jrsh360mevh0rjctu9669quy97wu23u8sqdqpfha0j it won't be that hard actually. One use-case I can image is to use it to archive the events from my personal relay. All the events will be stored as Drupal entities, so I can do with it whatever I would like. #Drupal #PHP ",
"sig": "88eefe0816e4ed2e205f739ba64c8eab3188728f22ebb53b49f3a41b6e50a03a0ad124e5d7e506c64cbab9dc8487a63fb2047a820b89a1dd5a7b4c32f4400831"
}