centrex/laravel-crm

Core CRM package for companies, contacts, leads, deals, activities, CLV calculation, and pipeline analytics

Maintainers

Package info

github.com/centrex/laravel-crm

pkg:composer/centrex/laravel-crm

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-04-25 19:02 UTC

This package is auto-updated.

Last update: 2026-04-26 12:49:31 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

A lightweight CRM foundation for Laravel apps with first-party support for companies, contacts, leads, deals, activities, and a simple dashboard view.

Contents

Installation

You can install the package via composer:

composer require centrex/laravel-crm

You can publish the config file with:

php artisan vendor:publish --tag="laravel-crm-config"

This is the contents of the published config file:

return [
    'table_prefix' => 'crm_',
    'drivers' => [
        'database' => [
            'connection' => env('CRM_DB_CONNECTION', env('DB_CONNECTION', 'sqlite')),
        ],
    ],
];

You can publish and run the migrations with:

php artisan vendor:publish --tag="laravel-crm-migrations"
php artisan migrate

Optionally, you can publish the views using

php artisan vendor:publish --tag="laravel-crm-views"

Usage

use Centrex\Crm\Crm;

$crm = app(Crm::class);

$lead = $crm->createLead([
    'title' => 'ERP rollout for Alpine Foods',
    'source' => 'website',
    'value' => 150000,
]);

$deal = $crm->qualifyLead($lead, [
    'expected_close_date' => now()->addMonth()->toDateString(),
]);

$crm->advanceDealStage($deal, 'proposal');

$summary = $crm->getPipelineSummary();

When web routes are enabled, the package also exposes a simple /crm dashboard.

Testing

๐Ÿงน Keep a modern codebase with Pint:

composer lint

โœ… Run refactors using Rector

composer refacto

โš—๏ธ Run static analysis using PHPStan:

composer test:types

โœ… Run unit tests using PEST

composer test:unit

๐Ÿš€ Run the entire test suite:

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.