Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Rdstation Laravel Package

silici0/rdstation

View on GitHub
Deep Wiki
Context7

Laravel integration for RDStation version 2.0

This library provides an objected-oriented wrapper of the PHP classes to access RDStation API v2

Installation

composer require silici0/rdstation:dev-master

Publish Conf File

php artisan vendor:publish --provider="silici0\RDStation\RDStationServiceProvider"

Migration

Need to install rdstation database to store "code" and auth "key"

php artisan migrate

Configuration

Access https://appstore.rdstation.com/pt-BR/publisher to create a new APP, on the new APP use callback url yourdomain.com/rdstation, get your ClientID and ClientSecret key, put those on config/rdstation.php

Now you can access yourdomain.com/rdstation, just access the link, give it permission, on the way back you should see a success message.

And its ready to use.

Usage example

$rdstation = resolve('rdstation');

//Create or Update Lead
$d = array();
$d['name'] = 'Fulano de tal';
$d['email']= 'rafael@teste.com.br'; //Lead email Key
$d['personal_phone']='(11) 4022-1234';

$rdstation->createOrUpdate($d);

// Create new event for the Lead

$calltracking = Cookie::get('_rdtrk');
if (!empty($calltracking)) 
    $d['client_tracking_id']= $calltracking;
$utm_source = Cookie::get('__trf.src');
if (!empty($utm_source)) 
    $d['traffic_source'] = $utm_source;
else {
	// GET UTM and save in $d array
}

$rdstation->saveEvent('CONVERSION TAG NAME', $d);

// Update Funnel 
$d = array();
$d['email'] = 'rafael@teste.com.br'; //Lead email Key
$d['lifecycle_stage	'] = 'Lead';
$d['opportunity'] = false;
$d['contact_owner_email'] = 'rafael@user.com'; // Must be a rdstation user

$rdstation->updateFunnel($data);

Custom Fields

To send custom fields you need to use api_identifier fields, use getFields() method to check api_identifier of the fields

$rdstation->getFields();
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui