PHP code example of 3neti / onboarding

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

    

3neti / onboarding example snippets


use LBHurtado\Onboarding\Contracts\OnboardingServiceContract;
use LBHurtado\Onboarding\Data\OnboardingIntentData;
use LBHurtado\Onboarding\Enums\OnboardingPurpose;

$result = app(OnboardingServiceContract::class)->start(new OnboardingIntentData(
    purpose: OnboardingPurpose::RedeemPayCode,
    mobile: '09171234567',
));
bash
composer vendor:publish --tag=onboarding-config
php artisan vendor:publish --tag=onboarding-migrations
php artisan migrate