PHPackages                             silici0/rdstation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. silici0/rdstation

ActiveLaravel-package

silici0/rdstation
=================

A Laravel Wrapper around RDStation API version 2.0

44.1k↓100%3PHP

Since Jun 18Pushed 4y ago2 watchersCompare

[ Source](https://github.com/silici0/rdstation-laravel)[ Packagist](https://packagist.org/packages/silici0/rdstation)[ RSS](/packages/silici0-rdstation/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel integration for RDStation version 2.0
=============================================

[](#laravel-integration-for-rdstation-version-20)

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

Installation
------------

[](#installation)

```
composer require silici0/rdstation:dev-master

```

Publish Conf File
-----------------

[](#publish-conf-file)

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

```

Migration
---------

[](#migration)

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

```
php artisan migrate

```

Configuration
-------------

[](#configuration)

Access  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
-------------

[](#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
-------------

[](#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();

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/261987ce76cce5e1d43fbde312f1f47c819cba2195ebb1f4955bdff9d12763bb?d=identicon)[silici0](/maintainers/silici0)

---

Top Contributors

[![rafaelgw](https://avatars.githubusercontent.com/u/104240591?v=4)](https://github.com/rafaelgw "rafaelgw (3 commits)")[![silici0](https://avatars.githubusercontent.com/u/61994?v=4)](https://github.com/silici0 "silici0 (1 commits)")

### Embed Badge

![Health badge](/badges/silici0-rdstation/health.svg)

```
[![Health](https://phpackages.com/badges/silici0-rdstation/health.svg)](https://phpackages.com/packages/silici0-rdstation)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
