PHP code example of midia-simples / plan-center-sdk

1. Go to this page and download the library: Download midia-simples/plan-center-sdk 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/ */

    

midia-simples / plan-center-sdk example snippets


'providers' => [
    ...
    MidiaSimples\PlanCenterSDK\PlanCenterServiceProvider::class,
    ...
]

'aliases' => [
    ...
    'PlanCenter' => MidiaSimples\PlanCenterSDK\Facades\PlanCenter::class,
    ...
]



return [

    /**
     * URL base da API do Plan Center
     */
    'base_url' => env('PLAN_CENTER_BASE_URL'),

    /**
     * Chave secreta de autenticação (token)
     */
    'secret_key' => env('PLAN_CENTER_SECRET_KEY'),

];

PLAN_CENTER_SECRET_KEY=xxxxxxxxxxxxx
bash
php artisan vendor:publish --provider="MidiaSimples\PlanCenterSDK\PlanCenterServiceProvider"