PHPackages                             zabidok/php-onerecord-entities - 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. zabidok/php-onerecord-entities

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

zabidok/php-onerecord-entities
==============================

PHP ONE Record entities

201PHP

Since Feb 25Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

OneRecord Cargo &amp; Core Lists Implementation
===============================================

[](#onerecord-cargo--core-lists-implementation)

[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)[![Doctrine ORM](https://camo.githubusercontent.com/d4aaf0414619a49d456bee57e4f4aad06e1f9a22dd7d06348631864037605791/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f524d2d446f637472696e652d6f72616e6765)](https://www.doctrine-project.org/)[![Database Support](https://camo.githubusercontent.com/ad40b5281ea8b50dcdc369010bf94bedb151e54d314ae4441aa688a53601601e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f44617461626173652d4d7953514c253230253743253230506f737467726553514c2d677265656e)](https://www.mysql.com/)

🚀 Overview
----------

[](#-overview)

This project provides an **open-source implementation** of **Cargo (123 entities)** and **Core Lists (45 entities)** from the [IATA OneRecord standard](https://iata-cargo.github.io/ONE-Record/stable/). It is built with **Doctrine ORM**, making it easy to integrate with **MySQL** and **PostgreSQL** databases.

🛠 Features
----------

[](#-features)

- ✅ **Complete Entity Set** – Covers all Cargo and Core Lists models from OneRecord.
- ✅ **Doctrine ORM Compatibility** – Auto-generates tables in relational databases.
- ✅ **MySQL &amp; PostgreSQL Support** – Works with major SQL databases.
- ✅ **Open-source &amp; Community-driven** – Contributions welcome!

🔧 Installation
--------------

[](#-installation)

### 1️⃣ Install via composer

[](#1️⃣-install-via-composer)

```
composer require zabidok/php-onerecord-entities
```

### 1️⃣ OR Clone Repository

[](#1️⃣-or-clone-repository)

```
git clone https://github.com/zabidok/php-onerecord-entities.git
cd https://github.com/zabidok/php-onerecord-entities
```

### 2️⃣ Install Dependencies

[](#2️⃣-install-dependencies)

Ensure you have **PHP 8+, Composer, and Doctrine** installed.

```
composer install
```

### 3️⃣ Configure Database

[](#3️⃣-configure-database)

Create a `.env.local` file and update the database settings:

```
DATABASE_URL="mysql://user:password@127.0.0.1:3306/onerecord_db"
```

Or for PostgreSQL:

```
DATABASE_URL="pgsql://user:password@127.0.0.1:5432/onerecord_db"
```

### 4️⃣ Run Database Migrations

[](#4️⃣-run-database-migrations)

```
php bin/console doctrine:schema:update --force
```

### 5️⃣ Start Using the Entities!

[](#5️⃣-start-using-the-entities)

You can now use the Cargo and Core Lists entities in your Symfony application.

📌 Example Usage
---------------

[](#-example-usage)

Here’s how you can create and persist a `Piece` entity:

```
$entityManager = $this->getDoctrine()->getManager();

$piece = new Piece();
$piece->setUpid('example-upid');
$piece->setGoodsDescription('Test cargo');

$entityManager->persist($piece);
$entityManager->flush();
```

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

[](#-contributing)

We welcome contributions! To contribute:

1. Fork the repository.
2. Create a new branch (`feature-branch-name`).
3. Submit a pull request.

📝 License
---------

[](#-license)

This project is open-source and available under the [MIT License](LICENSE).

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b145f540abacfafe77588fd0acbb7fddf31587f33a6482cb451426be1bfb798f?d=identicon)[zabidok](/maintainers/zabidok)

---

Top Contributors

[![zabidok](https://avatars.githubusercontent.com/u/26367915?v=4)](https://github.com/zabidok "zabidok (2 commits)")

### Embed Badge

![Health badge](/badges/zabidok-php-onerecord-entities/health.svg)

```
[![Health](https://phpackages.com/badges/zabidok-php-onerecord-entities/health.svg)](https://phpackages.com/packages/zabidok-php-onerecord-entities)
```

###  Alternatives

[symfony/workflow

Provides tools for managing a workflow or finite state machine

62842.3M170](/packages/symfony-workflow)[stubbles/core

103.4k1](/packages/stubbles-core)

PHPackages © 2026

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