PHP interaction with Mastodon API, Drupal with Activity Pub, plus Indieweb
Mr. Wilson @mrwilson@lincolnite.net:
Does anybody have a favorite PHP library for interacting with the Mastodon API?
anelki 🧑💻💜✊ @anelki@tilde.zone:
@mrwilson @mlncn?
benjamin melançon @mlncn:
@anelki @mrwilson Good question! The Drupal Mastodon module - https://www.drupal.org/project/mastodon - uses the PHP library (available through composer) https://github.com/colorfield/mastodon-api-php
@anelki @mrwilson at @agaric we have more taken the approach of having a website interact with the fediverse not directly with ActivityPub, let alone the Mastodon API, but with the #IndieWeb approach https://www.drupal.org/project/indieweb so we get our posts to Mastodon via https://brid.gy/ — lots of different use cases, sorry for braindumping since you asked a specific question, interacting with the Mastodon API, but one more post in this thread…
@anelki @mrwilson @agaric another exciting way for some websites to interact with different Mastodon instances and the much larger ActivityPub-pub federated social web is by using the ActivityPub protocol to join the space directly, and both WordPress and Drupal support that, the latter has https://www.drupal.org/project/activitypub
Which relies on the underlying PHP library for ActivityPub protocol support: