New Mastodon API client library for PHP #26451
Replies: 2 comments
-
This is great @vazaha-nl - thank you for sharing! We are aware of the pain that we don't currently have an OpenAPI specification of our own, it may be worth knowing that if you are only working from the documentation, you may currently be missing some of the available API endpoints and features, but I'm working in the background to improve things here. I'll definitely look at getting your library added to the docs site. |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot Andy! Once the currently undocumented endpoints enter the documentation, it should be easy to update my client code. Will keep an eye on it! |
Beta Was this translation helpful? Give feedback.
-
Hi community,
I have been working very hard on my brand new Mastodon API client for PHP and today I am very happy to announce the release of version 1.0.
There are already a few other API clients for PHP available but they are either not complete, not actively maintained or lacking in other aspects. So decided to build my own, and do a proper job. I wanted this library to be fully typed, and complete: every api method and entity should be implemented. This turned out to be quite a challenge.
It was too time intensive to implement everything by hand. And there is no complete / up to date openapi spec available. So I had to find another way. I tried to generate a working spec using AppMap, but unfortunately that was unsuccessful due to a bug. In the end I decided to create a parser for the Mastodon markdown documentation. Which was not very easy but it turned out to be possible and feasible.
Check out the code, documentation and usage examples at https://github.com/vazaha-nl/mastodon-api-client. It would be great if my library could be included in the list at https://docs.joinmastodon.org/client/libraries/
Looking forward to your feedback!
Best regards,
Lennart
Beta Was this translation helpful? Give feedback.
All reactions