PHP code example of medienbaecker / kirby-mastodon
1. Go to this page and download the library: Download medienbaecker/kirby-mastodon library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
medienbaecker / kirby-mastodon example snippets
// site/config/config.php
return [
'medienbaecker.kirby-mastodon' => [
'instance' => 'https://mastodon.social',
'token' => 'YOUR_APP_TOKEN_HERE', // scope: write:statuses
'post.default' => '{{ page.title }}: {{ page.url }}',
],
];
snippet('mastodon-replies')