PHPackages                             infifni/sylius-fan-courier-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. infifni/sylius-fan-courier-plugin

ActiveSylius-plugin

infifni/sylius-fan-courier-plugin
=================================

Infifni FAN Courier plugin for Sylius.

201PHPCI failing

Since Jul 11Pushed 5y ago1 watchersCompare

[ Source](https://github.com/infifni/sylius-fan-courier-plugin)[ Packagist](https://packagist.org/packages/infifni/sylius-fan-courier-plugin)[ RSS](/packages/infifni-sylius-fan-courier-plugin/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

[ ![infifni logo](https://camo.githubusercontent.com/dd67a7cd54fa0db4c60692480f5071d7ddbec6fdee85dab0955769d121788fdd/68747470733a2f2f696e6669666e69736f6674776172652e726f2f7468656d65732f637573746f6d2f696e6669666e692f6c6f676f2e737667)](https://infifnisoftware.ro) Sylius FAN Courier plugin
 License MIT
=========================================

[](#----sylius-fan-courier-plugin--------license-mit)

This plugin works with selfawb.ro API and provides shipping cost estimation from FAN Courier provider (using their API).

This plugin was made on top of Bitbag Shipping Export abstraction layer, with some modifications.

Also the services provided by FAN Courier are based in Romania, you'll most likely have errors for other regions.

Prerequisites
-------------

[](#prerequisites)

You'll need an account on  and also a contract that will be signed after you make an explicit request to . There are many services to choose from, the one you choose must be also selected when defining a shipping gateway at point 4.

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

[](#installation)

1. Install Bitbag Shipping Export plugin, the Infifni modified version.

    1.1. Add a section repositories to your main application composer.json file with the following:

    ```
    {
        "repositories": [
            {
                "type": "vcs",
                "url": "https://github.com/infifni/SyliusShippingExportPlugin"
            }
        ]
    }
    ```

    1.2. Follow installation steps from except the composer require step. That step should be:

    ```
        composer require bitbag/shipping-export-plugin:dev-master
    ```
2. Install Sylius FAN Courier plugin.

    2.1. Composer install.

    ```
    composer require infifni/sylius-fan-courier-plugin
    ```

    2.2. Add plugin dependencies to your `config/bundles.php` file (this is done automatically with flex):

    ```
    // config/bundles.php
    return [
        // other lines
        Infifni\SyliusFanCourierPlugin\InfifniSyliusFanCourierPlugin::class => ['all' => true],
    ];
    ```

    2.3. Import resource:

    ```
    // config/packages/infifni_sylius_fan_courier_plugin.yaml
    imports:
       - { resource: "@InfifniSyliusFanCourierPlugin/Resources/config/resource/infifni_shipping_awb.yml" }
    ```

    2.4. Execute database migration (check the queries in case you already have data in database):

    ```
    cd /project/root
    cp vendor/infifni/sylius-fan-courier-plugin/src/Migrations/Version20200606093404.php src/Migrations
    bin/console doctrine:mig:mig
    ```
3. Define a shipping method at /admin/shipping-methods/new.

    - name it FAN Courier and whatever pleases you
    - the only mandatory thing here is to select for Calculator the FAN calculator, it will be used for cost estimation
4. Define a new gateway at /admin/shipping-gateways/new/fan and use the shipping method defined at 4.

Common pitfalls
---------------

[](#common-pitfalls)

PitfallWhyException thrownWhat user seesIncorrect province name- provinces are not inserted as specified above or plugin is used for geographical areas outside of Romania\\Infifni\\SyliusFanCourierPlugin\\Exception\\WrongProvinceNameExceptionCostul de transport afișat este greșit din cauza unei erori de sistem. Vă rugăm continuați comanda, se va regla manual de către un operator ulterior !Incorrect city name- city does not exist in FAN's database; diacritics are removed by the plugin if any; all uppercase letters are converted to lowercase and spaces are trimmed before doing the FAN request\\Infifni\\SyliusFanCourierPlugin\\Exception\\WrongCityNameExceptionOrașul introdus nu este recunoscut în sistem, costul de transport afișat nu este real. Situația se va regla manual de către un operator ulterior !What to do ?

If you've experienced such a pitfall normally you can solve it by changing the names provided. If the error persists please report an issue in Github.

You can also regularly watch the logs (dev.log, prod.log) and search errors containing 'Shipping estimation failed for shipment with id'. If you can solve them please do and do a pull request to the project. If not please report the issue, especially if it's not an exception enumerated above.

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

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/412a751b21ba6f05c0ef08f1358926dba25e1d2c0606aa4c521f50798d23cd97?d=identicon)[lco91](/maintainers/lco91)

### Embed Badge

![Health badge](/badges/infifni-sylius-fan-courier-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/infifni-sylius-fan-courier-plugin/health.svg)](https://phpackages.com/packages/infifni-sylius-fan-courier-plugin)
```

PHPackages © 2026

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