PHP code example of radasfunk / lucentcms-php

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

    

radasfunk / lucentcms-php example snippets


$lucent = new Client(
    {{channelID}},
    {{apiKey}}),
);

// Optionally you can set the locale
$lucent->addHeader("Accept-Language",{locale});

$res = $lucent->get('documents', [
    'filter[schema]' => 'products',
]);
bash
composer