I've just started using Clark Rasmussen's library and some of the info from Neil's to cross post from my blog (PHP but nor WordPress). It works really nicely. The hardest bit was just working out what Bluesky would and wouldn't accept (e.g. it doesn't accept a link card with a thumb that is an empty value, you have to remove the thumb.)

I've not found a reliable way to pull in replies yet but am working on it.