PHPackages                             enspireagencia/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. enspireagencia/laravel-rd-station

ActiveLibrary[API Development](/categories/api)

enspireagencia/laravel-rd-station
=================================

Integrate your Laravel project with RD Station

v0.1(1y ago)06MITPHPPHP ^8.1

Since May 28Pushed 1y agoCompare

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

READMEChangelog (1)Dependencies (12)Versions (2)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 Tests Action Status](https://camo.githubusercontent.com/10ef7da79c83f88d3f67967158b896240aa30129cb26ed8f621072c9c09aab0b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f706564726f6e692f6c61726176656c2d72642d73746174696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/pedroni/laravel-rd-station/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6379eef39698676057c22a62b19a3cc307ba571512c141c916cdb748563cd1eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f706564726f6e692f6c61726176656c2d72642d73746174696f6e2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/pedroni/laravel-rd-station/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![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.

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

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

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

22

—

LowBetter than 22% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

714d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdfcdee79a3c4f6c1d0aed095ad28f401b78d9e4e505cd6b66da699d458e3f2b?d=identicon)[enspireagencia](/maintainers/enspireagencia)

---

Top Contributors

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

---

Tags

laravelpedronird-station

###  Code Quality

TestsPest

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/enspireagencia-laravel-rd-station/health.svg)](https://phpackages.com/packages/enspireagencia-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)
