PHPackages                             milzer/infx - 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. milzer/infx

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

milzer/infx
===========

infx is a specific format using in Germany tourism industry.

1.0.7(8mo ago)04.9k↓33.8%MITPHPPHP ^8.3.0CI passing

Since May 22Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/milzer-tech/infx)[ Packagist](https://packagist.org/packages/milzer/infx)[ RSS](/packages/milzer-infx/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (7)Dependencies (9)Versions (10)Used By (0)

 [![](https://camo.githubusercontent.com/b3264e714012a065a09b01e059620226b59e07e4024492f19369af7f4a6d78bd/68747470733a2f2f6d696c7a65722e64652f77702d636f6e74656e742f75706c6f6164732f323032352f30322f6d696c7a65722d6c6f676f2e737667)](https://camo.githubusercontent.com/b3264e714012a065a09b01e059620226b59e07e4024492f19369af7f4a6d78bd/68747470733a2f2f6d696c7a65722e64652f77702d636f6e74656e742f75706c6f6164732f323032352f30322f6d696c7a65722d6c6f676f2e737667)

INFX Package for Travel Offers
==============================

[](#infx-package-for-travel-offers)

![Latest Version](https://camo.githubusercontent.com/f3b7181a765cb405277a5902b9a747f60667e36fbc9098d8c289575e5dcbec86/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696c7a65722f696e66783f7374796c653d666c61742d737175617265)![Total Downloads](https://camo.githubusercontent.com/8c0f5b78dded8af1a14a139dbaf3ecdfd80f519405e03d1a24f996f1ee102221/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696c7a65722f696e66783f7374796c653d666c61742d737175617265)

A robust PHP library to generate, validate, and serialize **INFX** travel offer records according to version 1.0.5.

---

📌 What is INFX?
---------------

[](#-what-is-infx)

INFX is a **fixed width**, field based text format widely used in the tourism industry to transmit structured travel offers—covering package tours, flight only deals, and round trips. This library encapsulates the full spec, offering modular, validated, trait based field assembly.

---

⚙️ Features
-----------

[](#️-features)

- ✅ Full coverage of INFX v1.0.5 spec
- ⚙️ Modular traits and PHP 8 attributes for fields
- 🧬 Handles complex data: pricing tiers, occupancy, flights
- 🔄 Exclusive string → INFX export pipeline
- 🛡 Central validation via `ValidatorHelper`

---

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

[](#-installation)

```
composer require milzer/infx
```

---

🚀 Quickstart
------------

[](#-quickstart)

```
use milzer\Infx\Entities\Line;

$line = (new Line())
    ->setOfferNumber('ABC1234567')
    ->setPartner('SAT')
    ->setDepartureDate('2025-07-21')
    ->setReturnDate('2025-07-28')
    ->setDepartureAirportOutbound('FRA')
    ->setArrivalAirportOutbound('PMI')
    ->setCurrency('EUR')
    ->setPrice('1199.00')
    ->setHotelName('Club Palma')
    ->setBoardCode('HP')
    ->setOccupancy(2);

echo $line; // Outputs fixed-width INFX line
```

---

📁 Architecture
--------------

[](#-architecture)

```
src/
├── Attributes/Field.php         # Field position/type metadata
├── Entities/Line.php           # Main offer entity
├── Traits/…/HasXYZ.php         # Modular field traits
└── Helpers/ValidatorHelper.php # Central validation logic

```

Each `Line` represents a full offer. Fields are trait-composed; central validator ensures consistency.

---

🏗 Development
-------------

[](#-development)

```
git clone git@github.com:milzer/infx.git
cd infx
composer install
./vendor/bin/phpunit
```

Coding standards are enforced via GitHub Actions CI (PHPUnit, PHP-CS-Fixer, PHPStan).

---

🤝 Contributing
--------------

[](#-contributing)

We welcome bug reports, feature requests, and PRs!
Please open an issue to discuss larger changes.
All contributions require completing our CLA.
Refer to [CONTRIBUTING.md](CONTRIBUTING.md) for details.

---

📞 Contact
---------

[](#-contact)

**milzer GmbH**
Anna-Klöcker-Straße 25 52222 Stolberg (Rhld.) Germany
🌐 [milzer.de](https://milzer.de)
📧  | ☎️ +49 2402 9066190

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance59

Moderate activity, may be stable

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.6% 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 ~21 days

Recently: every ~33 days

Total

8

Last Release

262d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a4adcb8f8c36799e774d10d9dbf259ab8d53a6c2b5e4d6d4ac25d751fb364621?d=identicon)[development\_milzer](/maintainers/development_milzer)

---

Top Contributors

[![azim-kordpour](https://avatars.githubusercontent.com/u/26648275?v=4)](https://github.com/azim-kordpour "azim-kordpour (125 commits)")[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (80 commits)")[![simonmilz](https://avatars.githubusercontent.com/u/5016123?v=4)](https://github.com/simonmilz "simonmilz (4 commits)")[![jayan-blutui](https://avatars.githubusercontent.com/u/30396013?v=4)](https://github.com/jayan-blutui "jayan-blutui (3 commits)")[![askdkc](https://avatars.githubusercontent.com/u/7894265?v=4)](https://github.com/askdkc "askdkc (1 commits)")[![Synchro](https://avatars.githubusercontent.com/u/81561?v=4)](https://github.com/Synchro "Synchro (1 commits)")[![dansysanalyst](https://avatars.githubusercontent.com/u/79267265?v=4)](https://github.com/dansysanalyst "dansysanalyst (1 commits)")[![juse-less](https://avatars.githubusercontent.com/u/76173223?v=4)](https://github.com/juse-less "juse-less (1 commits)")[![svenluijten](https://avatars.githubusercontent.com/u/11269635?v=4)](https://github.com/svenluijten "svenluijten (1 commits)")

---

Tags

phppackageinfx

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/milzer-infx/health.svg)

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

###  Alternatives

[illuminate/support

The Illuminate Support package.

630113.0M41.3k](/packages/illuminate-support)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k19](/packages/solspace-craft-freeform)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40146.5k2](/packages/erlandmuchasaj-laravel-gzip)[limingxinleo/hyperf-utils

Utils for Hyperf.

29137.1k3](/packages/limingxinleo-hyperf-utils)[japanese-date/japanese-date

日本の暦、祝日を取り扱うライブラリ

1610.0k](/packages/japanese-date-japanese-date)

PHPackages © 2026

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