PHPackages                             karabinse/fabriq - 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. [Framework](/categories/framework)
4. /
5. karabinse/fabriq

ActiveLibrary[Framework](/categories/framework)

karabinse/fabriq
================

A CMS Framework by Karabin

3.0.1(1mo ago)06↑2400%MITPHPPHP ^8.0CI failing

Since Mar 17Pushed 1mo agoCompare

[ Source](https://github.com/KarabinSE/fabriq)[ Packagist](https://packagist.org/packages/karabinse/fabriq)[ RSS](/packages/karabinse-fabriq/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (26)Versions (5)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/a74708ef36643e140a870fa0fad928c320d3e22b47e5a09110854ab40e66149d/687474703a2f2f706f7365722e707567782e6f72672f6b61726162696e73652f6661627269712f76)](https://packagist.org/packages/karabinse/fabriq)[![PHP Version Require](https://camo.githubusercontent.com/603d099df5f86eca777a247119f39f345483a1a401ac3b5964ff6ab701ff6e9f/687474703a2f2f706f7365722e707567782e6f72672f6b61726162696e73652f6661627269712f726571756972652f706870)](https://packagist.org/packages/karabinse/fabriq)[![tests](https://github.com/karabinse/fabriq/actions/workflows/phpunit.yml/badge.svg)](https://github.com/karabinse/fabriq/actions/workflows/phpunit.yml)[![PHPStanLevel6](https://github.com/KarabinSE/fabriq/actions/workflows/phpstan.yml/badge.svg)](https://github.com/KarabinSE/fabriq/actions/workflows/phpstan.yml)

[![Fabriq CMS logo](https://camo.githubusercontent.com/a787abcba23df2c491ecdeaff0b5644df1e17c23a93cd317be03ba891f401895/68747470733a2f2f6d656469612e6661627269712d636d732e73652f7075626c69632f6661627269712d6f672d696d6167652d313230302e6a7067)](https://camo.githubusercontent.com/a787abcba23df2c491ecdeaff0b5644df1e17c23a93cd317be03ba891f401895/68747470733a2f2f6d656469612e6661627269712d636d732e73652f7075626c69632f6661627269712d6f672d696d6167652d313230302e6a7067)

Fabriq CMS
----------

[](#fabriq-cms)

Upgrade guides
--------------

[](#upgrade-guides)

- See [UPGRADE-v3.md](UPGRADE-v3.md) for upgrading an existing project from v2.x to v3.x.

Installation instructions 💻
---------------------------

[](#installation-instructions-)

Add the customer repository url for the make-user-command in your `composer.json` file:

```
...
    "repositories": {
        "0": {
            "type": "vcs",
            "url": "https://github.com/KarabinSE/laravel-make-user"
        }
    },

```

Install Fabriq:

```
composer require karabinse/fabriq "^2.0" -W

```

If you're planning on using AWS s3:

```
# Laravel > 9
composer require --with-all-dependencies league/flysystem-aws-s3-v3 "^1.0"

# Laravel 9+
composer require league/flysystem-aws-s3-v3 "^3.0"
```

Install the Mailgun driver

```
composer require symfony/mailgun-mailer symfony/http-client
```

Install [Laravel Sanctum](https://github.com/laravel/sanctum) as well for authentication

```
composer require laravel/sanctum

```

Add the domain to the `.env` file:

```
SANCTUM_STATEFUL_DOMAINS=your-domain.test
SESSION_DOMAIN=your-domain.test

```

Publish the configurations:

```
php artisan vendor:publish --provider="Karabin\Fabriq\FabriqCoreServiceProvider" --tag=config
php artisan vendor:publish --provider="Karabin\TranslatableRevisions\TranslatableRevisionsServiceProvider" --tag=config

```

Setup your database using the .env

Modify the user model 🧘
-----------------------

[](#modify-the-user-model-)

The user model need to extend the Fabriq\\Models\\User::class

```
// app/Models/User.php

//...
use Karabin\Fabriq\Models\User as FabriqUser;
//...

class User extends FabriqUser

// ...
```

Run the `fabriq:install` command:

```
php artisan fabriq:install

```

This command will publish front end assets and views. It will also run the migrations

**Important** Delete the files `app.js` and `bootstrap.js` in the `resources/js` directory

```
rm resources/js/app.js && rm resources/js/bootstrap.js

```

Run `pnpm install` and `pnpm production` to build assets

```
pnpm install && pnpm production

```

Auth configuration 🗝
--------------------

[](#auth-configuration-)

### Laravel v11 and above

[](#laravel-v11-and-above)

Note

On Laravel 11 and up the step below is not necessary since the files are overwritten when installing

### Laravel below v11

[](#laravel-below-v11)

Enable the Laravel Sanctum middleware in `app\Http\Kernel.php`

```
    // app\Http\Kernel.php

    /**
     * The application's route middleware groups.
     *
     * @var array
     */
    protected $middlewareGroups = [
        'web' => [
            \App\Http\Middleware\EncryptCookies::class,
            \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
            \Illuminate\Session\Middleware\StartSession::class,
            // \Illuminate\Session\Middleware\AuthenticateSession::class,
            \Illuminate\View\Middleware\ShareErrorsFromSession::class,
            \App\Http\Middleware\VerifyCsrfToken::class,
            \Illuminate\Routing\Middleware\SubstituteBindings::class,
        ],

        'api' => [
            \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, // forDevProtected();
}, [
    'middleware' => ['auth:sanctum', 'role:dev', 'verified'],
    'prefix' => 'dev'
]);

Fabriq::routes(function ($router) {
    $router->forApiAdminProtected();
}, [
    'middleware' => ['auth:sanctum', 'role:admin', 'verified'],
    'prefix' => 'admin'
]);

Fabriq::routes(function ($router) {
    $router->forApiProtected();
}, [
    'middleware' => ['auth:sanctum']
]);

Fabriq::routes(function ($router) {
    $router->forPublicApi();
});
```

```
// routes/web.php

use Karabin\Fabriq\Fabriq;

Fabriq::routes(
    function ($router) {
        $router->allWeb();
    }
);
```

Create your first user in the database, or by using a package like [michaeldyrynda/laravel-make-user](https://github.com/michaeldyrynda/laravel-make-user)

#### Publishing assets 🗄️

[](#publishing-assets-️)

Assets can be published using their respective tags. The tags that are available are:

- `config` - The config file
- `fabriq-translations` - Translations for auth views and validation messages
- `fabriq-frontend-assets` - Front end build system and Vue project files
- `fabriq-views` - Blade views and layouts

You can publish these assets using the command below:

```
php artisan vendor:publish --provider="Karabin\Fabriq\FabriqCoreServiceProvider" --tag=the-tag

```

If you want to overwrite your old published assets with new ones (for example when the package has updated views) you can use the `--force` flag

```
php artisan vendor:publish --provider="Karabin\Fabriq\FabriqCoreServiceProvider" --tag=fabriq-views --force

```

**Note** *Above tags have been published when the `fabriq:install` was run*

### Broadcasting 📢

[](#broadcasting-)

Fabriq leverages [laravel/echo](https://github.com/laravel/echo) as a front end dependency to communicate with a pusher server. This package is preconfigured to use Ikoncept's own websocket server, but a pusher implementation can be swapped in.

For the migrated Inertia admin, Echo is initialized on demand from the package runtime when websocket config is available. There is no manual `resources/js/plugins/index.js` import step anymore, and there is no client-side route middleware wiring to maintain.

Don't forget to add the proper `.env` variables:

```
BROADCAST_DRIVER=ikoncept_pusher
PUSHER_APP_ID=400
PUSHER_APP_KEY=your-key
PUSHER_APP_SECRET=your-secret
PUSHER_APP_CLUSTER=mt1

```

Presence and broadcast subscriptions for the migrated admin are package-owned and are wired from the relevant Inertia surfaces, primarily the page editor/comments runtime. Host apps only need the websocket configuration and backend broadcasting setup.

### Updating ♻️

[](#updating-️)

You can publish new front end assets with the `php artisan fabriq:update` command. This command will publish new front end assets and run migrations.

### Done? 🎉

[](#done-)

That should be it, serve the app and login at `/login`

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Testing
-------

[](#testing)

```
composer test

```

###  Health Score

40

—

FairBetter than 87% of packages

Maintenance98

Actively maintained with recent releases

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99.5% 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 ~2 days

Total

4

Last Release

46d ago

Major Versions

2.x-dev → 3.0.02026-03-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/53842b68734249d1bd4581663ce93e12dd241047cbdc11c49065f294c0228d36?d=identicon)[Albin N](/maintainers/Albin%20N)

---

Top Contributors

[![nivv](https://avatars.githubusercontent.com/u/4033930?v=4)](https://github.com/nivv "nivv (442 commits)")[![cleanSumo](https://avatars.githubusercontent.com/u/41383171?v=4)](https://github.com/cleanSumo "cleanSumo (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/karabinse-fabriq/health.svg)

```
[![Health](https://phpackages.com/badges/karabinse-fabriq/health.svg)](https://phpackages.com/packages/karabinse-fabriq)
```

###  Alternatives

[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1225.0k10](/packages/fleetbase-core-api)

PHPackages © 2026

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