PHP code example of tristantbg / kirby-mux

1. Go to this page and download the library: Download tristantbg/kirby-mux 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/ */

    

tristantbg / kirby-mux example snippets


// site/config/config.php
return [
  'tristantbg.kirby-mux' => [
    'tokenId' => 'XXX', // Your Mux API Access Token ID
    'tokenSecret' => 'XXX', // Your Mux API Secret Key
  ],
];

// site/config/config.php
return [
  'tristantbg.kirby-mux' => [
    'tokenId' => 'XXX',
    'tokenSecret' => 'XXX',
    'dev' => true,
  ],
];

   // site/config/config.php
   return [
     'tristantbg.kirby-mux' => [
       'tokenId' => 'XXX',
       'tokenSecret' => 'XXX',
       'webhookSecret' => 'XXX', // Mux webhook signing secret
     ],
   ];
   

// site/config/config.php
return [
  'tristantbg.kirby-mux' => [
    // …
    'organizationId' => 'XXX', // from your Mux dashboard URL
    'environmentId' => 'XXX', // from your Mux dashboard URL
  ],
];