PHPackages                             samuel-olavo/laravel-rt-bestpratical - 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. [API Development](/categories/api)
4. /
5. samuel-olavo/laravel-rt-bestpratical

ActiveLibrary[API Development](/categories/api)

samuel-olavo/laravel-rt-bestpratical
====================================

Laravel package to interact with the RT (Request Tracker) API

v1.1.0(1y ago)08MITPHPPHP ^8.0.2

Since Nov 18Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/samuel-olavo/laravel-rt-bestpratical)[ Packagist](https://packagist.org/packages/samuel-olavo/laravel-rt-bestpratical)[ RSS](/packages/samuel-olavo-laravel-rt-bestpratical/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Laravel RT Bestpratical Integration
===================================

[](#laravel-rt-bestpratical-integration)

This Laravel package allows you to interact with the **Request Tracker (RT)** ^5.0.0 using the REST API, including both certificate-based and token-based authentication.

Documentation
-------------

[](#documentation)

For detailed API documentation, refer to the official Request Tracker REST API docs: [Request Tracker API Docs](https://docs.bestpractical.com/rt/5.0.0/RT/REST2.html#NAME).

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

[](#installation)

1. Add the package to your Laravel project:

    ```
    composer require samuel-olavo/laravel-rt-bestpratical
    ```
2. Publish the configuration file:

    ```
    php artisan vendor:publish --provider="SamuelOlavo\LaravelRTBestpratical\RTServiceProvider"
    ```
3. Add the following settings to your `.env` file:

    ```
    RT_BASE_URL="https://my.rt.server/rt5/REST/2.0"
    RT_CERTIFICATE=true
    RT_USER=user
    RT_PASSWORD=password
    RT_CERTIFICATE_PATH=/path/to/your-certificate.pem
    RT_PRIVATE_KEY_PATH=/path/to/your-private-key.pem
    RT_CERTIFICATE_CHAIN_PATH=/path/to/your-cert-chain.crt
    RT_API_TOKEN="your-api-token"
    ```

Usage
-----

[](#usage)

### Example 1: Create a Ticket

[](#example-1-create-a-ticket)

To create a ticket:

```
use SamuelOlavo\LaravelRTBestpratical\RTService;

$rtService = app(RTService::class);
$ticketData = [
    'queue' => 'General',
    'subject' => 'Test ticket subject',
    'owner' => 'admin',
    'requestor' => 'user@example.com',
    'text' => 'This is the description of the ticket.',
];

$ticket = $rtService->createTicket($ticketData);

if (isset($ticket['id'])) {
    return response()->json(['message' => 'Ticket created successfully', 'ticket_id' => $ticket['id']], 201);
}

return response()->json(['error' => $ticket], 500);
```

### Example 2: Create a Ticket Details

[](#example-2-create-a-ticket-details)

```
$ticketDetails = $rtService->getTicket(1); // Get details for ticket ID 1
```

### Example 3: Add a Response to a Ticket

[](#example-3-add-a-response-to-a-ticket)

```
$responseData = [
    'Content' => 'This is the response to the ticket. How can I assist you?',
    'ContentType' => 'text/plain',
];

$response = $rtService->addResponseToTicket(1, $responseData);

if (isset($response['message']) && $response['message'] === 'Correspondence added') {
    return response()->json(['message' => 'Response added successfully to the ticket!'], 200);
}

return response()->json(['error' => 'Error adding response to the ticket'], 500);
```

### Example 4: Update a Ticket

[](#example-4-update-a-ticket)

```
$assignData = [
    'owner' => 'new-owner',
];

$response = $rtService->assignTicket(1, $assignData);

if (isset($response['id'])) {
    return response()->json(['message' => 'Ticket assigned successfully', 'ticket_id' => $response['id']], 200);
}

return response()->json(['error' => 'Error assigning the ticket'], 500);
```

### Available Methods

[](#available-methods)

- `createTicket()`
- `getTicket()`
- `searchTickets()`
- `addComment()`
- `updateTicket()`
- `assignTicket()`
- `getTicketHistory()`
- `resolveTicket()`
- `deleteTicket()`
- `listQueues()`
- `listUsers()`

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance56

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

541d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3e05f029029840279b9b050e970afd8703a235a739c24ebbfbbc7b209a918d4e?d=identicon)[samuel-olavo](/maintainers/samuel-olavo)

---

Top Contributors

[![samuel-olavo](https://avatars.githubusercontent.com/u/140401117?v=4)](https://github.com/samuel-olavo "samuel-olavo (19 commits)")

### Embed Badge

![Health badge](/badges/samuel-olavo-laravel-rt-bestpratical/health.svg)

```
[![Health](https://phpackages.com/badges/samuel-olavo-laravel-rt-bestpratical/health.svg)](https://phpackages.com/packages/samuel-olavo-laravel-rt-bestpratical)
```

###  Alternatives

[skagarwal/google-places-api

Google Places Api

1913.0M8](/packages/skagarwal-google-places-api)[dcblogdev/laravel-microsoft-graph

A Laravel Microsoft Graph API (Office365) package

168285.5k1](/packages/dcblogdev-laravel-microsoft-graph)[vluzrmos/slack-api

Wrapper for Slack.com WEB API.

102589.1k3](/packages/vluzrmos-slack-api)[smodav/mpesa

M-Pesa API implementation

16363.7k1](/packages/smodav-mpesa)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)[grantholle/powerschool-api

A Laravel package to make interacting with PowerSchool less painful.

1715.6k1](/packages/grantholle-powerschool-api)

PHPackages © 2026

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