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

ActiveLibrary

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

Star Insure CRM Client

1.1.5(12mo ago)070MITPHPPHP ^8.1

Since Nov 2Pushed 12mo 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 1mo ago

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 72% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity53

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

361d 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

[corbosman/laravel-passport-claims

Add claims to Laravel Passport JWT Tokens

88655.9k](/packages/corbosman-laravel-passport-claims)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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