PHPackages                             star-insure/crm-client - 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. star-insure/crm-client

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

star-insure/crm-client
======================

Star Insure CRM Client

1.1.5(1y ago)073MITPHPPHP ^8.1

Since Nov 2Pushed 1y agoCompare

[ Source](https://github.com/star-insure/crm-client)[ Packagist](https://packagist.org/packages/star-insure/crm-client)[ Docs](https://github.com/star-insure/crm-client)[ RSS](/packages/star-insure-crm-client/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Star Insure CRM Client
======================

[](#star-insure-crm-client)

A package for Laravel apps that includes a wrapper for the Star Inure CRM and scaffolds out routes, controllers and middleware for authenticating with the Star auth app.

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

[](#installation)

You can install the package via composer:

```
composer require star-insure/crm-client
```

Add these values to your `.env` file:

```
# CRM
CRM_API_URL=http://crm.test
CRM_API_TOKEN=dev
CRM_API_GROUP_ID=2
CRM_API_VERSION=v1
```

### Publish config:

[](#publish-config)

```
php artisan vendor:publish --tag=starinsure-crm
```

Usage
-----

[](#usage)

### API

[](#api)

Call the Star CRM API by instantiating a new client, or using the `StarInsure\Api\Facades\CrmApi` facade.

```
CrmApi::get('/account-manager-brokers');
```

### Helper functions

[](#helper-functions)

Create a `helpers.php` file within the `app` directory (or edit your existing one):

```
if (! function_exists('crm')) {
    /**
     * Global helper to create an instance of the StarCrm client.
     */
    function crm()
    {
        return new \StarInsure\Crm\CrmApi(
            config('crm.version'),
        );
    }
}
```

Autoload your helpers file in `composer.json`:

```
"autoload": {
    ...
    "files": [
        "app/helpers.php"
    ]
},
```

After adding the helpers file to composer.json, you'll need to dump the autoloader

```
composer dump-autoload

```

You can now use the global helper functions and not worry about namespaces/imports.

```
crm()->get('/account-manager-brokers');
```

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance46

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

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

Every ~279 days

Total

3

Last Release

414d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02e06d939be026746151b711568e4397d5f9f4d1b6ba54cab3db12f14ccca04c?d=identicon)[alexclark-nz](/maintainers/alexclark-nz)

---

Top Contributors

[![alexthekiwi](https://avatars.githubusercontent.com/u/38124722?v=4)](https://github.com/alexthekiwi "alexthekiwi (6 commits)")[![nzbasic](https://avatars.githubusercontent.com/u/54062686?v=4)](https://github.com/nzbasic "nzbasic (1 commits)")

---

Tags

star-insure

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/star-insure-crm-client/health.svg)

```
[![Health](https://phpackages.com/badges/star-insure-crm-client/health.svg)](https://phpackages.com/packages/star-insure-crm-client)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M278](/packages/illuminate-pipeline)[illuminate/broadcasting

The Illuminate Broadcasting package.

7127.2M208](/packages/illuminate-broadcasting)[illuminate/redis

The Illuminate Redis package.

8314.6M371](/packages/illuminate-redis)

PHPackages © 2026

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