PHPackages                             thecodingcompany/php-mastodon - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. thecodingcompany/php-mastodon

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

thecodingcompany/php-mastodon
=============================

Mastodon PHP library oAuth and API

v1.0.5(9y ago)3025513[3 issues](https://github.com/TheCodingCompany/MastodonOAuthPHP/issues)[1 PRs](https://github.com/TheCodingCompany/MastodonOAuthPHP/pulls)1MITPHPPHP &gt;=5.6.0

Since Apr 6Pushed 7y ago5 watchersCompare

[ Source](https://github.com/TheCodingCompany/MastodonOAuthPHP)[ Packagist](https://packagist.org/packages/thecodingcompany/php-mastodon)[ Docs](https://github.com/TheCodingCompany/MastodonOAuthPHP)[ RSS](/packages/thecodingcompany-php-mastodon/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (5)DependenciesVersions (4)Used By (1)

MastodonOAuthPHP
================

[](#mastodonoauthphp)

PHP Library for Mastodon REST API

What's in it?
-------------

[](#whats-in-it)

- App creation.
- Full oAuth implementation to authorize your App by users.
- Create and get authorization token, access token, client\_id, client\_secret and bearer token.
- Authenticate users
- Get user information
- Get user followers and following
- Get user status
- Post status update

Installation using Composer
---------------------------

[](#installation-using-composer)

```
composer require thecodingcompany/php-mastodon

```

Questions and example?
----------------------

[](#questions-and-example)

Yes, mail me at: vangelier at hotmail dot com Contact me on #Twitter @digital\_human Contact me on #Mastodon

Get started
-----------

[](#get-started)

### Step 1

[](#step-1)

First step is you need to create a so called App. This app represents your 'service'. With this app you provide services to users or use Mastodon for other reasons.

To create an App is as simple as:

```
