PHP code example of remp / crm-family-module

1. Go to this page and download the library: Download remp/crm-family-module 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/ */

    

remp / crm-family-module example snippets


    namespace Crm\DemoModule;

    class DemoModule
    {
        public function registerWidgets(\Crm\ApplicationModule\Widget\WidgetManagerInterface $widgetManager) {
            $widgetManager->registerWidget(
                'frontend.subscriptions.top',
                $this->getInstance(\Crm\FamilyModule\Components\FamilyRequestsListWidget\FamilyRequestsListWidget::class),
                300
            );
        }
    }