PHPackages                             lacatoire/acriss-code - 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. lacatoire/acriss-code

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

lacatoire/acriss-code
=====================

ACRISS vehicle classification decoder for PHP (Symfony-ready, Laravel-friendly, standalone)

v1.0.0(1y ago)21MITPHPPHP &gt;=8.2

Since Jun 12Pushed 3mo agoCompare

[ Source](https://github.com/lacatoire/acriss-code)[ Packagist](https://packagist.org/packages/lacatoire/acriss-code)[ RSS](/packages/lacatoire-acriss-code/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Acriss Code
===========

[](#acriss-code)

> Decode and translate ACRISS vehicle classification codes in PHP.

[![CI](https://github.com/lacatoire/acriss-code/actions/workflows/phpunit.yml/badge.svg)](https://github.com/lacatoire/acriss-code/actions)[![Latest Stable Version](https://camo.githubusercontent.com/14a12c4aaf7ef91470196a33063af6caa06bfa9f3fdf8905baf18c52075cb2da/68747470733a2f2f706f7365722e707567782e6f72672f6c616361746f6972652f6163726973732d636f64652f76)](https://packagist.org/packages/lacatoire/acriss-code)[![License](https://camo.githubusercontent.com/b6425d86b67bd96d590b0a6c97eeddd882746dc4c25b9734230b6e3a98f1b423/68747470733a2f2f706f7365722e707567782e6f72672f6c616361746f6972652f6163726973732d636f64652f6c6963656e7365)](LICENSE)

A PHP library to **parse**, **validate**, and **translate** [ACRISS codes](https://www.acriss.org/car-codes/) (used by rental companies to describe vehicles). Strongly-typed with PHP 8.2+ enums, multilingual (EN, FR, IT, DE), framework-agnostic.

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

[](#installation)

```
composer require lacatoire/acriss-code
```

Symfony Flex registers the bundle automatically.

Usage
-----

[](#usage)

### Parse a code

[](#parse-a-code)

```
use Acriss\AcrissCodeParser;

$parser = new AcrissCodeParser();
$code = $parser->parse('CDMR');

echo $code->category->value;
```

### Translate a code

[](#translate-a-code)

```
use Acriss\AcrissTranslator;

$translator = new AcrissTranslator($symfonyTranslator);
$labels = $translator->translate($code, 'fr');

echo $labels->category;
echo $labels->fuelAirCon;
```

### Full details (parse + translate)

[](#full-details-parse--translate)

```
use Acriss\AcrissCodeDetails;

$details = (new AcrissCodeDetails($parser, $translator))->get('CDMR', 'it');

echo $details->translated->transmission; // "Manuale"
```

Standalone usage (without framework)
------------------------------------

[](#standalone-usage-without-framework)

```
use Symfony\Component\Translation\Translator;
use Symfony\Component\Translation\Loader\YamlFileLoader;
use Acriss\AcrissTranslator;

$translator = new Translator('fr');
$translator->addLoader('yaml', new YamlFileLoader());
$translator->addResource('yaml', __DIR__.'/translations/messages.fr.yaml', 'fr');

$acriss = new AcrissTranslator($translator);
```

Supported locales
-----------------

[](#supported-locales)

`en`, `fr`, `it`, `de` — PRs welcome to add more.

Testing
-------

[](#testing)

```
composer install
./vendor/bin/phpunit
```

License
-------

[](#license)

MIT

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance65

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity50

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

Unknown

Total

1

Last Release

386d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/98dfb2310b8c4e6af5e2abaf0860cff407f88539e146378b7d4ca424217e66e2?d=identicon)[lacatoire](/maintainers/lacatoire)

---

Top Contributors

[![lacatoire](https://avatars.githubusercontent.com/u/20201470?v=4)](https://github.com/lacatoire "lacatoire (6 commits)")

---

Tags

acrissbundleclassificationenumphprentalsymfonyvehicle

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lacatoire-acriss-code/health.svg)

```
[![Health](https://phpackages.com/badges/lacatoire-acriss-code/health.svg)](https://phpackages.com/packages/lacatoire-acriss-code)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[metamodels/core

MetaModels core

10156.4k68](/packages/metamodels-core)[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

27600.4k5](/packages/symfony-ux-toggle-password)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9773.0k3](/packages/jbtronics-settings-bundle)[mapbender/mapbender

Mapbender library

10418.3k8](/packages/mapbender-mapbender)

PHPackages © 2026

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