PHP code example of jeyroik / extas-fields-defaults

1. Go to this page and download the library: Download jeyroik/extas-fields-defaults 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/ */

    

jeyroik / extas-fields-defaults example snippets


$my = new class extends Item {
    protected function getSubjectForExtension(): string
    {
        return 'my.subject';
    }
};

echo $my['my_field']; // "my value"