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

ActiveLibrary

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

infx is a specific format using in Germany tourism industry.

1.0.7(7mo ago)03.6k↑68.2%MITPHPPHP ^8.3.0CI passing

Since May 22Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/milzer-tech/infx)[ Packagist](https://packagist.org/packages/milzer/infx)[ RSS](/packages/milzer-infx/feed)WikiDiscussions main Synced 1mo 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

42

—

FairBetter than 90% of packages

Maintenance64

Regular maintenance activity

Popularity22

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

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

216d 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

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[awssat/laravel-visits

Laravel Redis visits counter for Eloquent models

975163.6k2](/packages/awssat-laravel-visits)

PHPackages © 2026

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