PHP code example of pi-space / laravel-github-to-notion-webhooks

1. Go to this page and download the library: Download pi-space/laravel-github-to-notion-webhooks 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/ */

    

pi-space / laravel-github-to-notion-webhooks example snippets


return [
    'github' => [
        'secret' => env('GITHUB_WEBHOOK_SECRET'),
        'events' => [
            'issue' => true,
            'pull_request' => true,
        ],
    ],
    'notion' => [
        'databases' => [
            'issues' => 'cc66f47f03cb4b62a774f6d5f34463ce',
            'pull-requests' => 'b99a0a1287d142bbbd7bec87fe1e6406',
            'users' => '430cedc2495348df926ca520e1255182',
        ],
    ]
];


NOTION_TOKEN=secret_{your_token}

$this->app->bind(IssueTransformerInterface::class, IssueTransformer::class);
bash
php artisan notion:create-databases {parentPageId}