PHPackages                             effectra/laravel-support-ticket - 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. effectra/laravel-support-ticket

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

effectra/laravel-support-ticket
===============================

The Effectra support ticket package for laravel.

v1.1.0(8mo ago)2130MITPHP

Since Aug 29Pushed 8mo agoCompare

[ Source](https://github.com/effectra/laravel-support-ticket)[ Packagist](https://packagist.org/packages/effectra/laravel-support-ticket)[ RSS](/packages/effectra-laravel-support-ticket/feed)WikiDiscussions main Synced today

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

Laravel Support Ticket
======================

[](#laravel-support-ticket)

A simple and extensible **support ticket management system** for Laravel.
Built for teams that need to manage customer tickets and responses directly inside their Laravel apps.

---

🚀 Features
----------

[](#-features)

- 🎫 Manage support tickets with customizable status, topic, and importance level.
- 💬 Allow users and employees to exchange responses.
- 🧩 Fully configurable: define your own models, enums, and table names.
- ⚙️ Includes ready-to-publish migrations and config file.
- 🌍 Supports multiple languages (English &amp; Arabic out of the box).
- 🪶 Built with [Spatie Laravel Package Tools](https://github.com/spatie/laravel-package-tools) for clean integration.

---

📦 Installation
--------------

[](#-installation)

```
composer require effectra/laravel-support-ticket
```

> Requires **PHP ≥ 8.1** and **Laravel ≥ 10**.

---

⚙️ Configuration
----------------

[](#️-configuration)

Publish the config and migrations:

```
php artisan vendor:publish --tag="support-ticket-config"
php artisan vendor:publish --tag="support-ticket-migrations"
```

Or run the install command provided by Spatie’s package tools:

```
php artisan support-ticket:install
```

Then run your migrations:

```
php artisan migrate
```

---

🧰 Configuration Options
-----------------------

[](#-configuration-options)

The published config file is located at:

```
config/support-ticket.php

```

### Example configuration

[](#example-configuration)

```
return [
    'tables' => [
        'tickets' => 'support_tickets',
        'responses' => 'support_tickets_responses',
        'users' => 'users',
        'employees' => 'users',
    ],

    'models' => [
        'user' => \App\Models\User::class,
        'employee' => \App\Models\User::class,
        'ticket_response' => Effectra\LaravelSupportTicket\Models\TicketResponse::class,
    ],

    'default' => [
        'status' => \Effectra\LaravelSupportTicket\Enums\TicketStatusEnum::PENDING->value,
        'importance_level' => \Effectra\LaravelSupportTicket\Enums\TicketImportanceLevelEnum::LOW->value,
        'topic' => \Effectra\LaravelSupportTicket\Enums\TicketTopicEnum::GENERAL_INQUIRY->value,
    ],
];
```

---

🧱 Migrations
------------

[](#-migrations)

The package includes two migrations:

1. **support\_tickets** – stores the main ticket data.
2. **support\_tickets\_responses** – stores replies from users/employees.

You can modify these before running `php artisan migrate`.

---

🧩 Enums
-------

[](#-enums)

Enums are used for strong typing and cleaner logic:

EnumValues`TicketStatusEnum``PENDING`, `OPEN`, `CLOSED`, `RESOLVED``TicketTopicEnum``GENERAL_INQUIRY`, `TECHNICAL_ISSUE`, `BILLING`, `OTHER``TicketImportanceLevelEnum``LOW`, `MEDIUM`, `HIGH`, `CRITICAL`Example usage:

```
use Effectra\LaravelSupportTicket\Enums\TicketStatusEnum;

$ticket->status = TicketStatusEnum::OPEN->value;
```

---

🧠 Basic Usage Example
---------------------

[](#-basic-usage-example)

### Creating a Ticket

[](#creating-a-ticket)

```
use Effectra\LaravelSupportTicket\Models\Ticket;
use Effectra\LaravelSupportTicket\Enums\TicketStatusEnum;

$ticket = Ticket::create([
    'title' => 'Unable to access account',
    'body' => 'I am getting a 403 error when logging in.',
    'status' => TicketStatusEnum::PENDING->value,
    'user_id' => auth()->id(),
]);
```

### Adding a Response

[](#adding-a-response)

```
use Effectra\LaravelSupportTicket\Models\TicketResponse;

TicketResponse::create([
    'ticket_id' => $ticket->id,
    'message' => 'We are checking your issue.',
    'responder_id' => auth()->id(),
    'responder_type' => \App\Models\User::class,
]);
```

### Getting Ticket Responses

[](#getting-ticket-responses)

```
$responses = $ticket->responses; // Collection of TicketResponse models
```

---

🌐 Localization
--------------

[](#-localization)

Translations are stored in:

```
localization/en/
localization/ar/

```

You can publish and customize them:

```
php artisan vendor:publish --tag="support-ticket-translations"
```

---

🧩 Service Provider
------------------

[](#-service-provider)

The package automatically registers itself via Laravel’s package discovery. However, if you need to register manually, add to your `config/app.php`:

```
'providers' => [
    Effectra\LaravelSupportTicket\Providers\LaravelSupportTicketServiceProvider::class,
],
```

---

🧪 Testing
---------

[](#-testing)

To run the tests:

```
composer test
```

(You’ll need to create factories and test cases in your consuming app.)

---

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT license](LICENSE).

---

👨‍💻 Author
----------

[](#‍-author)

**Mohammed Taha (BMT)**Senior Full-Stack Developer – PHP / Laravel / React / TypeScript / NextJs 📧 🌍 [github.com/BMTmohammedtaha](https://github.com/BMTmohammedtaha)

---

⭐ Contributing
--------------

[](#-contributing)

Contributions, issues, and feature requests are welcome! Feel free to open a pull request or submit an issue on GitHub.

---

🏁 Quick Recap
-------------

[](#-quick-recap)

```
composer require effectra/laravel-support-ticket
php artisan support-ticket:install
php artisan migrate
```

Then start managing your support tickets 🚀

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance60

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~54 days

Total

2

Last Release

254d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e6219ae87e98df8783b2f595b013035dd183c0712afd24045a8acf0a40c3bdf?d=identicon)[effectra](/maintainers/effectra)

---

Top Contributors

[![BMTmohammedtaha](https://avatars.githubusercontent.com/u/95439605?v=4)](https://github.com/BMTmohammedtaha "BMTmohammedtaha (4 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/effectra-laravel-support-ticket/health.svg)

```
[![Health](https://phpackages.com/badges/effectra-laravel-support-ticket/health.svg)](https://phpackages.com/packages/effectra-laravel-support-ticket)
```

###  Alternatives

[phenx/php-font-lib

A library to read, parse, export and make subsets of different types of font files.

1.8k160.8M55](/packages/phenx-php-font-lib)[pid/speakingurl

Generate of so called 'static' or 'Clean URL' or 'Pretty URL' or 'nice-looking URL' or 'Speaking URL' or 'user-friendly URL' or 'SEO-friendly URL' or 'slug' from a string.

1.1k5.4k1](/packages/pid-speakingurl)[botman/driver-facebook

Facebook Messenger driver for BotMan

71309.1k6](/packages/botman-driver-facebook)

PHPackages © 2026

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