PHP code example of superheld / summae-core

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

    

superheld / summae-core example snippets


use Summae\Core\Tenant;
use Summae\Core\Substrate\Currency;
use Summae\Core\Composition\TenantOperations;

$ops = new TenantOperations(Tenant::inMemory('Demo GmbH', Currency::of('EUR')));
$ops->execute('createFiscalYear', ['year' => 2026, 'start' => '2026-01-01', 'end' => '2026-12-31']);
$susa = $ops->project('trialBalance', ['fiscalYear' => 2026, 'throughPeriod' => 12]);