1. Go to this page and download the library: Download remp/crm-onboarding-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-onboarding-module example snippets
namespace Crm\ExampleModule;
class ExampleModule extends \Crm\ApplicationModule\CrmModule
{
//...
public function registerEventHandlers(\League\Event\Emitter $emitter)
{
//...
// catch user onboarding events & handle them in RempCampaign's handler
$emitter->addListener(
\Crm\OnboardingModule\Events\UserOnboardingGoalCreatedEvent::class,
$this->getInstance(\Crm\RempCampaignModule\Events\UserOnboardingGoalEventsHandler::class)
);
$emitter->addListener(
\Crm\OnboardingModule\Events\UserOnboardingGoalCompletedEvent::class,
$this->getInstance(\Crm\RempCampaignModule\Events\UserOnboardingGoalEventsHandler::class)
);
$emitter->addListener(
\Crm\OnboardingModule\Events\UserOnboardingGoalTimedoutEvent::class,
$this->getInstance(\Crm\RempCampaignModule\Events\UserOnboardingGoalEventsHandler::class)
);
//...
}
//...
}