PHPackages                             pedroni/laravel-rd-station - 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. [API Development](/categories/api)
4. /
5. pedroni/laravel-rd-station

ActiveLibrary[API Development](/categories/api)

pedroni/laravel-rd-station
==========================

Integrate your Laravel project with RD Station

v7.0.1(1y ago)43121MITPHPPHP ^8.2|^8.3|^8.4CI passing

Since Mar 11Pushed 3w ago1 watchersCompare

[ Source](https://github.com/pedroni/laravel-rd-station)[ Packagist](https://packagist.org/packages/pedroni/laravel-rd-station)[ Docs](https://github.com/pedroni/laravel-rd-station)[ GitHub Sponsors](https://github.com/pedroni)[ RSS](/packages/pedroni-laravel-rd-station/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)Dependencies (12)Versions (15)Used By (0)

Integrate your Laravel project with RD Station
==============================================

[](#integrate-your-laravel-project-with-rd-station)

[![Latest Version on Packagist](https://camo.githubusercontent.com/ce924c0f7a61a6274c36eddc822b95407e637d9d8e5f53802bc2dfe88b82626f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706564726f6e692f6c61726176656c2d72642d73746174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pedroni/laravel-rd-station)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/31a14c4f412fd5b032d801b6d71144f99a74973cd631410660a0138c2ee402f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706564726f6e692f6c61726176656c2d72642d73746174696f6e2f2e676974687562253246776f726b666c6f777325324672756e2d74657374732e796d6c)](https://camo.githubusercontent.com/31a14c4f412fd5b032d801b6d71144f99a74973cd631410660a0138c2ee402f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706564726f6e692f6c61726176656c2d72642d73746174696f6e2f2e676974687562253246776f726b666c6f777325324672756e2d74657374732e796d6c)[![GitHub Actions Workflow Status](https://camo.githubusercontent.com/d15db3d84b9b446f1d847c41eb8a6e80c7f23125b694b89d6532e43ea208447b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706564726f6e692f6c61726176656c2d72642d73746174696f6e2f2e676974687562253246776f726b666c6f77732532467068707374616e2e796d6c3f6c6162656c3d7068707374616e)](https://camo.githubusercontent.com/d15db3d84b9b446f1d847c41eb8a6e80c7f23125b694b89d6532e43ea208447b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706564726f6e692f6c61726176656c2d72642d73746174696f6e2f2e676974687562253246776f726b666c6f77732532467068707374616e2e796d6c3f6c6162656c3d7068707374616e)[![Total Downloads](https://camo.githubusercontent.com/05b3278c1dd35f1faf367ccf27810b5f6961afbabdc9bd498b42765b59e25c51/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706564726f6e692f6c61726176656c2d72642d73746174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/pedroni/laravel-rd-station)

This is a Laravel wrapper around the RD Station API.

Laravel Support Matrix
----------------------

[](#laravel-support-matrix)

This table outlines the Laravel versions supported by each version of our library.

Library VersionLaravel Version1.x, 2.x, 3.x8.x4.x9.x5.x10.x6.x11.x7.x12.xInstallation
------------

[](#installation)

You can install the package via composer:

```
composer require pedroni/laravel-rd-station
```

You can publish the config file with:

```
php artisan vendor:publish --tag="rd-station-config"
```

This is the contents of the published config file:

```
return [
    'base_url' => env('RD_STATION_BASE_URL', 'https://api.rd.services'),
    'client_id' => env('RD_STATION_CLIENT_ID'), // REQUIRED
    'client_secret' => env('RD_STATION_CLIENT_SECRET'), // REQUIRED
    'redirect_path' => env('RD_STATION_REDIRECT_PATH', 'rd-station/oauth/callback'),
];
```

> ⚠️ The env variable `RD_STATION_REDIRECT_PATH` **MUST** match your route endpoint that will be configured later

Publish migrations files and run the migrations:

```
php artisan vendor:publish --tag="rd-station-migrations"
php artisan migrate
```

Add two `GET` routes for the installation controller and the callback controller, example:

```
// routes/web.php

use Pedroni\RdStation\Controllers\OAuthInstall;
use Pedroni\RdStation\Controllers\OAuthCallback;

Route::get('rd-station/oauth/install', OAuthInstall::class);
Route::get('rd-station/oauth/callback', OAuthCallback::class); // recommended
```

Open a browser window on  to initiate the instalation.

> ⚠️ If you decide to change the recommended callback URL you **MUST** change the `RD_STATION_REDIRECT_PATH` variable

Usage
-----

[](#usage)

### Using the facade

[](#using-the-facade)

```
use Pedroni\RdStation\Facades\RdStation;

RdStation::events()->conversion([
    'email' => 'example@mail.com',
    'conversion_identifier' => 'identifier',
    'cf_example' => 'An example of custom field',
    'tags' => ['example-tag'],
]);
```

### Using dependency injection

[](#using-dependency-injection)

```
use Pedroni\RdStation;

public function ExampleController
{
    public function exampleUsingAnArgument(RdStation $rdStation)
    {
        $rdStation->events()->conversion([...]);
    }

    public function exampleUsingLaravelContainer()
    {
        $rdStation = app()->make(RdStation::class);

        $rdStation->events()->conversion([...]);
    }
}
```

Testing
-------

[](#testing)

```
composer test
docker run --rm -v $(pwd):/app -w /app composer:latest bash -c "composer install && vendor/bin/pest"
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Lucas Pedroni](https://github.com/pedroni)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance74

Regular maintenance activity

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 78.6% 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.

###  Release Activity

Cadence

Every ~103 days

Recently: every ~5 days

Total

12

Last Release

390d ago

Major Versions

v2.0.1 → v3.0.02023-09-17

v3.0.0 → v4.0.02025-03-28

v4.0.0 → v5.0.02025-03-28

v5.0.0 → v6.0.02025-03-28

v6.0.0 → v7.0.02025-03-28

PHP version history (6 changes)0.0.1-betaPHP ^7.4

2.0.0PHP ^8.0

v3.0.0PHP ^8.1

v4.0.0PHP ^8.1|^8.2

v5.0.0PHP ^8.1|^8.2|^8.3

v6.0.0PHP ^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/87e9efcce79ab620fdca050b693e30dc145d43e8ba2089de0b7bf4ee0dbf30b9?d=identicon)[pedroni](/maintainers/pedroni)

---

Top Contributors

[![pedroni](https://avatars.githubusercontent.com/u/69983330?v=4)](https://github.com/pedroni "pedroni (66 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (18 commits)")

---

Tags

laravelpedronird-station

###  Code Quality

TestsPest

Static AnalysisPHPStan

### Embed Badge

![Health badge](/badges/pedroni-laravel-rd-station/health.svg)

```
[![Health](https://phpackages.com/badges/pedroni-laravel-rd-station/health.svg)](https://phpackages.com/packages/pedroni-laravel-rd-station)
```

###  Alternatives

[simplestats-io/laravel-client

Client for SimpleStats!

4515.5k](/packages/simplestats-io-laravel-client)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[codebar-ag/laravel-docuware

DocuWare integration with Laravel

1221.1k](/packages/codebar-ag-laravel-docuware)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)

PHPackages © 2026

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