PHP code example of lyrasoft / investor

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

    

lyrasoft / investor example snippets


$this->lang->loadAllFromVendor('lyrasoft/investor', 'ini');

// OR

$this->lang->loadAllFromVendor(\Lyrasoft\Investor\InvestorPackage::class, 'ini');

return [
    // ...

    __DIR__ . '/financial-statement.seeder.php',
    __DIR__ . '/shareholder-info.seeder.php',
    __DIR__ . '/dividend-history.seeder.php',

    // ...
];

// Investor
$menu->link('投資人專區')
    ->to($nav->to('banner_list'))
    ->icon('fal fa-money-bill-trend-up');

$menu->registerChildren(
    function (MenuBuilder $menu) use ($nav, $lang) {
        // Finance
        $menu->link('財務及法人資訊')
            ->to($nav->to('financial_statement_list'))
            ->icon('fal fa-chart-line');

        // Shareholder
        $menu->link('股東專區')
            ->to($nav->to('shareholder_info_list'))
            ->icon('fal fa-user-friends');

        // Dividend
        $menu->link('歷年股利分派')
            ->to($nav->to('dividend_history_list'))
            ->icon('fal fa-coins');
    }
);

php windwalker pkg:install lyrasoft/investor -t lang