PHP code example of jeyroik / extas-values

1. Go to this page and download the library: Download jeyroik/extas-values 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-values example snippets


use extas\components\Item;
use extas\components\THasValue;
use extas\components\THasComplexValue;

$item = new class extends Item {
    use THasValue;
    use THasComplexValue;
    protected function getSubjectForExtension(): string
    {
        return 'test';
    }
};

echo $item->buildValue(); // test