1. Go to this page and download the library: Download sgkirby/sendmentions 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/ */
sgkirby / sendmentions example snippets
// the templates that sending pings should be allowed for
'sgkirby.sendmentions.templates' => ['default', 'note'],
// the templates that should request links to be archived
// (has to be a subset of those in the .templates setting)
'sgkirby.sendmentions.archiveorg' => ['default', 'note'],
// sets default to: send pings on page publication unless disabled for a page
'sgkirby.sendmentions.pingOnPublish' => true,
// sets default to: send pings on page update unless disabled for a page
'sgkirby.sendmentions.pingOnUpdate' => true,
// the token to protect the cronjob target
'sgkirby.sendmentions.secret' => '<YOUR-SECRET>',
// disables the cronjob queue and sends pings instantly instead
// (causes long delays in panel UI; not recommended and soon to be removed)
'sgkirby.sendmentions.synchronous' => true,
// triggering the enqueue/send process for a Page object
\sgkirby\SendMentions\SendMentions::send($page);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.