PHP code example of maxlutzfl / airtable-php

1. Go to this page and download the library: Download maxlutzfl/airtable-php 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/ */

    

maxlutzfl / airtable-php example snippets


'airtable' => [
    'key' => env('AIRTABLE_KEY'),
    'id' => env('AIRTABLE_ID'),
],

public function register()
{
    app()->bind('airtable', function() {
        $httpClient = new Http();
        return new Airtable(
            $httpClient,
            config('services.airtable.key'),
            config('services.airtable.id'),
        );
    });
}

namespace App\Facades;

use Illuminate\Support\Facades\Facade;

class AirtableFacade extends Facade
{
    protected static function getFacadeAccessor()
    {
        return 'airtable';
    }
}

Airtable::table('Users')->grab('record-id-here');