Skip to content

eliosfund/repcard-php-sdk

Repository files navigation

RepCard

Test Suite Downloads Packagist Version GitHub License codecov

RepCard SDK for Laravel.

Installation

Install the package via Composer:

composer require eliosfund/repcard-php-sdk

Publish the config file:

php artisan vendor:publish --tag=repcard-config

Set the following environment variables in your .env file:

REPCARD_API_KEY=your-api-key
REPCARD_COMPANY_ID=your-company-id

In config/repcard.php, add the role names you want to allow when creating or updating a user, e.g.:

'roles' => [
    'Sales',
    'Sales Manager',
],

Usage

use RepCard\Facades\RepCard;