PHP code example of scottboms / promote-button

1. Go to this page and download the library: Download scottboms/promote-button 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/ */

    

scottboms / promote-button example snippets



  return [
    'scottboms.promote' => [
      'services' => [
        'mastodon',
        'bluesky',
        'linkedin'
      ],
      'mastodon' => [
        'username' => 'USERNAME', // e.g. scottboms
        'url' => 'MASTODON_HOST', // e.g. mastodon.social
      ],
      'bluesky' => [
        'base_url' => 'BLUESKY_HOST', // e.g. bsky.social
        'handle' => 'USERNAME', // e.g. example.bsky.social‬
      ]
    ],
  ]


  return [
    'scottboms.promote.mastodon.token' => 'MASTODON_API_TOKEN',
    'scottboms.promote.bluesky.password' => 'BLUESKY_APP_PASSWORD',
    'scottboms.promote.linkedin.token' => 'LINKEDIN_OAUTH_TOKEN',
  ],


  return [
    'scottboms.promote' => [
      'host_url' => 'SHARED_LINK_HOST', // e.g. https://example.com
    ],
  ]