There are 2 articles with a tag of WebDevelopment.
Using PHP and cURL to post media to the Mastodon API
A couple of years ago I posted the most popular article on the site on how to use PHP and cURL to post to the Mastodon API. Since then I’ve been meaning to post a follow-up -on how to post media and finally it’s here.
Using PHP and cURL to post to the Mastodon API
As my distaste for Twitter has grown over the last while I decided to see if I could deploy my own instance of Mastodon, a federated, distributed social network. Turns out I had my instance up and running in just a few hours using a $10 a month Digital Ocean Docker droplet and the handy Mastodon docker containers. It was way easier than I thought it would be and allowed to mess around with the API without causing too much havoc. I’ve long since moved to the indieweb.social instance, it has a much better local timeline and has an excellent admin. You can find me there at @firstname.lastname@example.org.
I don’t write too often anymore, but when I do, this is where you’ll find it.
Photographs, articles and notes are published when I feel like it. Learn more about subscribing
to keep up-to-date.