PHPackages                             kasperhartwich/ticketbutler - 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. kasperhartwich/ticketbutler

ActiveLibrary

kasperhartwich/ticketbutler
===========================

Ticketbutler.io API Integration.

2.5(2mo ago)11.2k↓100%MITPHPPHP ^8.1CI passing

Since Jan 25Pushed 2mo ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (9)Used By (0)

Ticketbutler
============

[](#ticketbutler)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a4cacaec456a96ca8d5293cf902973d9c7a3884178c5a6ad21ac559db4586186/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b617370657268617274776963682f7469636b65746275746c65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kasperhartwich/ticketbutler)[![Tests](https://camo.githubusercontent.com/5767364930b6b66b3ffedf5f47b1aee7bd79f28671fb4c6fdb9d8c37f4d03996/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b617370657268617274776963682f7469636b65746275746c65722f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kasperhartwich/ticketbutler/actions/workflows/tests.yml)

This is a client for the [Ticketbutler API](https://lab.ticketbutler.io).

Requirements
------------

[](#requirements)

- PHP 8.1
- Laravel =&gt;8.x

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

[](#installation)

You can install the package via composer:

```
composer require kasperhartwich/ticketbutler
```

Usage
-----

[](#usage)

Create a API token in your Ticketbutler account. You can find it under `General settings > API access`.

### General

[](#general)

```
use Ticketbutler\Ticketbutler;

$ticketbutler = new Ticketbutler('your-api-token', 'example.com');
$tickets = $ticketbutler->getTickets();
```

### Laravel

[](#laravel)

Add your Ticketbutler token and domain key to your `.env` file:

```
TICKETBUTLER_TOKEN=your-token
TICKETBUTLER_DOMAIN=example.com
```

If you want to publish the config file you can run:

```
php artisan vendor:publish --tag=ticketbutler
```

Using Ticketbutler in your controller:

```
use Ticketbutler\Ticketbutler;

class MyController extends Controller
{
    public function index(Ticketbutler $ticketbutler)
    {
        $tickets = $ticketbutler->getTickets();
    }
}
```

Testing
-------

[](#testing)

```
composer test
```

Supported API methods
---------------------

[](#supported-api-methods)

SectionMethodSupportedEventsGet all Events✅ `getEvents()`EventsCreate an event✅ `createEvent($data)`EventsGet Specific Event✅ `getEvent($eventUuid)`EventsUpdate event✅ `updateEvent($eventUuid, $data)`EventsDelete event✅ `deleteEvent($eventUuid, $deleteReason)`Ticket typesGet event ticket types✅ `getEventTicketTypes($eventUuid)`Ticket typesCreate Ticket Type❌Ticket typesGet Specific Ticket Type❌Ticket typesUpdate Ticket Type❌Ticket typesDelete Ticket Type❌Data CollectionGet Ticket Type Questions✅ `getTicketTypeQuestions($eventUuid)`Data CollectionGet Purchase Questions✅ `getPurchaseQuestions($eventUuid)`Data CollectionDelete Ticket Type❌Data CollectionCreate/Update Ticket Type Questions❌Data CollectionGet Specific Question✅ `getSpecificQuestion($eventUuid)`Data CollectionUpdate Specific Question❌Data CollectionDelete Specific Question❌OrdersCreate Order❌OrdersGet a Specific Order❌OrdersGet events orders✅ `getEventOrders($eventUuid)`OrdersUpdate order❌OrdersRefund an order❌OrdersCollect Order Data❌OrdersGet Collected Data from order✅ `getCollectedDataFromOrder($orderUuid)`Event Discount codesCreate a discount code✅ `createEventDiscountCode($eventUuid, $data)`Event Discount codesGet event discount codes✅ `getEventDiscountCodes($eventUuid)`Event Discount codesToggle discount code✅ `toggleEventDiscountCode($eventUuid, $discountCodeId)`Event Discount codesDelete discount codes✅ `deleteEventDiscountCode($eventUuid, $codeUuid)`Generic Discount codesCreate a discount code✅ `createGenericDiscountCode($data)`Generic Discount codesGet discount codes✅ `getGenericDiscountCodes($eventUuid)`Generic Discount codesToggle discount code✅ `toggleGenericDiscountCode($codeId)`Generic Discount codesDelete discount codes✅ `deleteGenericDiscountCode($codeId)`TicketsGet event tickets✅ `getTickets()`TicketsGet specific ticket❌TicketsUpdate ticket details❌TicketsCollect Ticket Data❌TicketsGet Ticket Specific Questions❌Platform Data ExportingGet all newsletter signups✅ `getAllNewsletterSignups()`Platform Data ExportingGet Orders by Month✅ `getGetOrdersByMonth()`License
-------

[](#license)

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

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance83

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Every ~107 days

Recently: every ~185 days

Total

8

Last Release

89d ago

Major Versions

1.1 → 2.02024-01-26

### Community

Maintainers

![](https://www.gravatar.com/avatar/2c6fd6b0a69030bf968dbb8d17c815e6839f9bfcf3f12b706b9fb86318c338bb?d=identicon)[kasperh](/maintainers/kasperh)

---

Top Contributors

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

---

Tags

ticketbutler

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/kasperhartwich-ticketbutler/health.svg)

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

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[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)
