PHP code example of robuust / craft-clientonline

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

    

robuust / craft-clientonline example snippets




return [
    // General
    'office_id' => 9999, // YOUR OFFICE_ID
    // Section
    'sectionHandle' => 'YOUR_NEWS_SECTION_HANDLE',
    'entryTypeHandle' => 'YOUR_NEWS_ENTRY_TYPE_HANDLE',
    // Fields
    'articleIdField' => 'YOUR_NEWS_ARTICLE_ID_FIELD', // PlainText
    'imageField' => 'YOUR_NEWS_IMAGE_FIELD', // Asset
    'textField' => 'YOUR_NEWS_TEXT_FIELD', // Redactor
];