PHPackages                             itk-dev/itk\_pretix - 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. itk-dev/itk\_pretix

ActiveDrupal-module[API Development](/categories/api)

itk-dev/itk\_pretix
===================

A module using pretix API to generate events from field values

1.6.0(1mo ago)012.5k↓91.7%[1 issues](https://github.com/itk-dev/itk_pretix/issues)[28 PRs](https://github.com/itk-dev/itk_pretix/pulls)MITPHPPHP ^8.3

Since Jun 4Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/itk-dev/itk_pretix)[ Packagist](https://packagist.org/packages/itk-dev/itk_pretix)[ RSS](/packages/itk-dev-itk-pretix/feed)WikiDiscussions develop Synced 2d ago

READMEChangelog (4)Dependencies (29)Versions (59)Used By (0)

ITK Pretix
==========

[](#itk-pretix)

This Drupal 8 module creates a new field type that enables a link to  to be made.

Through the Pretix API it is possible to add, change or remove Pretix event date entries from the Drupal interface.

1. Add a new field of type `pretix date field type` to an entity.
2. Add a new field of type `pretix event settings` to the entity.
3. Add a pretix connection through the settings (local.settings.php).
4. Watch the magic happen.

Configuration
-------------

[](#configuration)

Go to `/admin/config/itk_pretix/pretixconfig` and enter your pretix details.

A hidden configuration option, `pretix_event_slug_template`, controls how pretix event slugs (short forms) are generated. The default value is `!nid` and `!nid`will be replaced with the actual node id when creating a pretix event.

To change the value of `pretix_event_slug_template`, set it in your site's settings, e.g. (in `settings.local.php`):

```
$config['itk_pretix.pretixconfig']['pretix_event_slug_template'] = 'dev-local';
```

If the value of `pretix_event_slug_template` is not empty, but `!nid` does not occur in the value, `-!nid` will be appended and the final template will be `dev-local-!nid`.

### Drupal base URL

[](#drupal-base-url)

For development, you may want to use a custom base URL for your Drupal site (overriding the base URL Drupal uses). To do this, set `$settings['itk_pretix']['drupal_base_url']` in your local settings, e.g.

```
# settings.local.php
$settings['itk_pretix']['drupal_base_url'] = 'http://example.com:8888';
```

Exporters
---------

[](#exporters)

This module exposes a number of event Data exporters that are run via the pretix REST api (cf. )

All exporters implement `Drupal\itk_pretix\Exporter\ExporterInterface` (by extending `Drupal\itk_pretix\Exporter\AbstractExporter`) and are managed by `Drupal\itk_pretix\Exporter\Manager` which takes care of displaying exporter parameters forms and running exporters.

The available exporters for a node can be run from `/itk_pretix/pretix/event/exporters/{node}` where `{node}` is the node id.

Building assets
---------------

[](#building-assets)

We use [Encore](https://symfony.com/doc/current/frontend/encore/installation.html) to build assets.

First, install tools and requirements:

```
docker compose run --rm node npm install
```

Build during development:

```
docker compose run --rm node npm run watch
```

Build for production:

```
docker compose run --rm node npm run build
```

Coding standards
----------------

[](#coding-standards)

The code must follw the [Drupal Coding Standards](https://www.drupal.org/docs/develop/standards)

Apply and check the coding standards by running

```
docker compose run --rm phpfpm composer install
docker compose run --rm phpfpm composer normalize
docker compose run --rm phpfpm composer coding-standards-apply
docker compose run --rm phpfpm composer coding-standards-check
```

### Assets

[](#assets)

Apply and check the coding standards in assets by running

```
docker compose run --rm node npm install
docker compose run --rm node npm run coding-standards-apply
docker compose run --rm node npm run coding-standards-check
```

### Markdown

[](#markdown)

```
docker compose run --rm markdownlint markdownlint '**/*.md' --fix
docker compose run --rm markdownlint markdownlint '**/*.md'
```

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance94

Actively maintained with recent releases

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 52.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 ~91 days

Recently: every ~112 days

Total

18

Last Release

32d ago

PHP version history (3 changes)1.0.0PHP ^7.2

1.1.0PHP ^8.1

1.3.0-rc.1PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33924554?v=4)[ITK Development](/maintainers/itk-dev)[@itk-dev](https://github.com/itk-dev)

---

Top Contributors

[![rimi-itk](https://avatars.githubusercontent.com/u/11267554?v=4)](https://github.com/rimi-itk "rimi-itk (124 commits)")[![martinyde](https://avatars.githubusercontent.com/u/545272?v=4)](https://github.com/martinyde "martinyde (112 commits)")

---

Tags

drupalphppretixdrupal

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/itk-dev-itk-pretix/health.svg)

```
[![Health](https://phpackages.com/badges/itk-dev-itk-pretix/health.svg)](https://phpackages.com/packages/itk-dev-itk-pretix)
```

###  Alternatives

[hussainweb/drupal-api-client

Convenient wrapper on Guzzle to access Drupal.org API

148.8k](/packages/hussainweb-drupal-api-client)

PHPackages © 2026

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