PHP code example of supabase-php / supabase-client
1. Go to this page and download the library: Download supabase-php/supabase-client 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/ */
supabase-php / supabase-client example snippets
use Supabase\Functions as Supabase;
// autoload the supabase class
$_ENV['SB_APIKEY'],
'service_role' => $_ENV['SB_SERVICE_ROLE'] # If don't want disable RLS
];
$client = new Supabase($config['url'], $config['apikey']);