PHPackages                             blackbricksoftware/laravel-civicrm - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. blackbricksoftware/laravel-civicrm

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

blackbricksoftware/laravel-civicrm
==================================

Tools for using CiviCRM data inside Laravel.

v11.0.0(7mo ago)291MITPHPPHP &gt;=8.2.0

Since Oct 16Pushed 7mo ago3 watchersCompare

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

READMEChangelogDependencies (2)Versions (4)Used By (0)

Laravel &lt;&gt; CiviCRM
========================

[](#laravel--civicrm)

A collection of tools to access [CiviCRM](https://civicrm.org/) data directly inside [Laravel](https://laravel.com/).

Currently, this is just a collection of models representing the CiviCRM data structures being used for an ETL tool.

Install Setup
-------------

[](#install-setup)

Install the package with the following command `composer require blackbricksoftware/laravel-civicrm`.

Publish the service provider `php artisan vendor:publish --provider="BlackBrickSoftware\LaravelCiviCRM\LaravelCiviCRMServiceProvider`.

Add `BlackBrickSoftware\LaravelCiviCRM\LaravelCiviCRMServiceProvider::class` to `providers` in `app/config/app.php` similar to:

```
'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    Illuminate\Auth\AuthServiceProvider::class,
    Illuminate\Broadcasting\BroadcastServiceProvider::class,
    // ...

    /*
     * Package Service Providers...
     */
    BlackBrickSoftware\LaravelCiviCRM\LaravelCiviCRMServiceProvider::class,
    // ...
];
```

Defining Custom Data relationships
----------------------------------

[](#defining-custom-data-relationships)

Start by creating a model for the custom data table and implement `\BlackBrickSoftware\LaravelCiviCRM\Models\CustomDataInterface`. For example:

```
