PHPackages                             arobases/sylius-transporter-label-generation-plugin - 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. arobases/sylius-transporter-label-generation-plugin

ActiveSylius-plugin

arobases/sylius-transporter-label-generation-plugin
===================================================

Arobases transporter label generation plugin for sylius

0.0.26(4d ago)068↓100%[4 PRs](https://github.com/Arobases-Sylius-Plugins/ArobasesSyliusTransporterLabelGenerationPlugin/pulls)MITPHPPHP ^7.4 || ^8.0

Since Jan 23Pushed 4d ago1 watchersCompare

[ Source](https://github.com/Arobases-Sylius-Plugins/ArobasesSyliusTransporterLabelGenerationPlugin)[ Packagist](https://packagist.org/packages/arobases/sylius-transporter-label-generation-plugin)[ RSS](/packages/arobases-sylius-transporter-label-generation-plugin/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (30)Versions (26)Used By (0)

Arobases Sylius Transporter generation label plugin
===================================================

[](#arobases-sylius-transporter-generation-label-plugin)

[![banner_arobases](https://user-images.githubusercontent.com/39689570/219097659-e87e83d8-7a82-4c23-9544-3d7e5532c3ed.jpg)](https://user-images.githubusercontent.com/39689570/219097659-e87e83d8-7a82-4c23-9544-3d7e5532c3ed.jpg)

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

[](#installation)

### Step 1: Download the plugin

[](#step-1-download-the-plugin)

```
composer require arobases/sylius-transporter-label-generation-plugin
```

### Step 2: Enable the plugin

[](#step-2-enable-the-plugin)

```
 ['all' => true],
];
```

### Step 3: Import Routes

[](#step-3-import-routes)

```
# config/routes.yaml
arobases_sylius_transporter_label_generation_admin:
    resource: "@ArobasesSyliusTransporterLabelGenerationPlugin/Resources/config/admin_routing.yml"
    prefix: /admin
```

### Step 4: Import config

[](#step-4-import-config)

```
# config/packages/arobases_sylius_transporter_label_generation.yaml
imports:
  - { resource: "@ArobasesSyliusTransporterLabelGenerationPlugin/Resources/config/resources.yaml" }
```

### Step 5: Include Traits

[](#step-5-include-traits)

override Shipment entity to include TransporterTrait

```
# Entity/Shipping/Shipment.php

/**
 * @ORM\Entity
 * @ORM\Table(name="sylius_shipment")
 */
class Shipment extends BaseShipment {
    use TransporterTrait;
}
```

override Address entity to include PickupPointTrait

```
# Entity/Addressing/Address.php

/**
 * @ORM\Entity
 * @ORM\Table(name="sylius_address")
 */
class Address extends BaseAddress
{
    use PickupPointTrait;
}
```

override Product entity to include HsCodeTrait and add the field to your form

```
# Entity/Product/Product.php

/**
 * @ORM\Entity
 * @ORM\Table(name="sylius_product")
 */
class Product extends BaseProduct {
    use HsCodeTrait;
}
```

```
# Form/Extension/Product/ProductTypeExtension.php

->add('hsCode', TextType::class,[
        'label' => "arobases_sylius_transporter_label_generation_plugin.form.product.hs_code",
        'required' => false
    ])
```

```
# Product/Tab/_details.html.twig

{{ form_row(form.hsCode) }}
```

override OrderRepository or add it 'findByShipment'

```
# OrderRepository.php

public function findByShipment($transporterId): QueryBuilder
{
  $qb = $this->createQueryBuilder('o')
    ->leftJoin('o.shipments', 'shipment')
    ->leftJoin('shipment.transporter', 'transporter')
    ->andWhere('transporter.id = :transporterId')
    ->andWhere('o.shippingState IN (:shippingState)')
    ->andWhere('o.paymentState IN (:paymentState)')
    ->setParameter('transporterId', $transporterId)
    ->setParameter('shippingState', ["ready", "shipped", "in_preparation"])
    ->setParameter('paymentState', ["paid"])
        ;
    return $qb;
}
```

### Step 6: Update database

[](#step-6-update-database)

```
bin/console doctrine:migration:migrate
```

Don't forget to run those commands to generate your files

```
bin/console asset:install
bin/console sylius:theme:asset:install
```

How it works
------------

[](#how-it-works)

!!! think to allow file writting for label generation (public/upload/label/colissimo) !!!

### Add a transporter

[](#add-a-transporter)

As things stand, you can add only Colissimo transporter. To add another one, override TransporterType and add more choices :

```
# TransporterType.php

->add('name', ChoiceType::class, [
                'label' => 'sylius.ui.name',
                'choices' => [
                    'Colissimo' => 'colissimo',
                    'another transporter' => 'another_transporter'
                ],
            ])
```

Create another connector service to looks like ColissimoRequest service and complete OrderLabelController.php to handle others transporters.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance99

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 68.4% 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 ~57 days

Recently: every ~5 days

Total

21

Last Release

4d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e8fb52a070e4cbc0be5a384c369fcaf4c8dc4d2acae62f0c33075927a26d66c?d=identicon)[arobases](/maintainers/arobases)

---

Top Contributors

[![chloeArobases](https://avatars.githubusercontent.com/u/197744433?v=4)](https://github.com/chloeArobases "chloeArobases (26 commits)")[![JeremyArobases](https://avatars.githubusercontent.com/u/61865544?v=4)](https://github.com/JeremyArobases "JeremyArobases (6 commits)")[![Arobases-e-commerce](https://avatars.githubusercontent.com/u/119339399?v=4)](https://github.com/Arobases-e-commerce "Arobases-e-commerce (4 commits)")[![costa-jeremy](https://avatars.githubusercontent.com/u/39689570?v=4)](https://github.com/costa-jeremy "costa-jeremy (2 commits)")

---

Tags

syliussylius-plugin

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/arobases-sylius-transporter-label-generation-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/arobases-sylius-transporter-label-generation-plugin/health.svg)](https://phpackages.com/packages/arobases-sylius-transporter-label-generation-plugin)
```

###  Alternatives

[bitbag/cms-plugin

CMS plugin for Sylius applications.

2461.1M5](/packages/bitbag-cms-plugin)[sylius/invoicing-plugin

Invoicing plugin for Sylius.

90999.0k2](/packages/sylius-invoicing-plugin)[sylius/refund-plugin

Plugin provides basic refunds functionality for Sylius application.

691.6M13](/packages/sylius-refund-plugin)[stefandoorn/sitemap-plugin

Sitemap Plugin for Sylius

851.0M](/packages/stefandoorn-sitemap-plugin)[sylius/paypal-plugin

PayPal plugin for Sylius.

441.4M4](/packages/sylius-paypal-plugin)[monsieurbiz/sylius-rich-editor-plugin

A Rich Editor plugin for Sylius.

74368.7k6](/packages/monsieurbiz-sylius-rich-editor-plugin)

PHPackages © 2026

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