PHPackages                             sirgix/bvr-bundle - 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. sirgix/bvr-bundle

Abandoned → [GeneralMediaCH/BvrBundle](/?search=GeneralMediaCH%2FBvrBundle)Symfony-bundle[Utility &amp; Helpers](/categories/utility)

sirgix/bvr-bundle
=================

A bundle with useful functions and template for swiss bvr+

1.0.1(8y ago)2103[1 issues](https://github.com/GeneralMediaCH/BvrBundle/issues)GPL-v2PHP

Since Jun 26Pushed 8y ago3 watchersCompare

[ Source](https://github.com/GeneralMediaCH/BvrBundle)[ Packagist](https://packagist.org/packages/sirgix/bvr-bundle)[ Docs](http://github.com/sirgix/BvrBundle)[ RSS](/packages/sirgix-bvr-bundle/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

BvrBundle
=========

[](#bvrbundle)

The goal of this bundle is to help you generating swiss BVR+ with Symfony2. For more information and documentation about BVR+ (in french) go to [http://fr.wikipedia.org/wiki/Bulletin\_de\_versement\_avec\_num%C3%A9ro\_de\_r%C3%A9f%C3%A9rence](http://fr.wikipedia.org/wiki/Bulletin_de_versement_avec_num%C3%A9ro_de_r%C3%A9f%C3%A9rence)

License
-------

[](#license)

GPL-V2

Installation
============

[](#installation)

### Using Composer (Symfony 2.1+)

[](#using-composer-symfony-21)

- Add a new line to your `composer.json` file:

```
"require": {
    ...
    "sirgix/bvr-bundle": "1.0.*@dev"
}

```

- Run a command

```
php composer.phar update

```

- Add a new line to `app/AppKernel.php`:

```
$bundles = array(
  ...
  new sirgix\BvrBundle\BvrBundle(),
)

```

A Quick Start guide
===================

[](#a-quick-start-guide)

### The BVR classes

[](#the-bvr-classes)

There are currently 2 bvr classes extending an abstract bvr class. If you just need to generate the encoding lines, you need to instantiante the bvr class and fill all the variables:

```

        $bvr = new PosteBVR();
        $bvr->setType(PosteBVR::BVR_CHF_PLUS);
        $bvr->setAmount(234.8);
        $bvr->setPaymentFor('test testson
        route des chemins 4
        1000 tonvillage');//Provide an adress. It will be displayed with nl2br
        $bvr->setPaymentFrom(/*see paymentFor*/);
        $bvr->setPostalAccount('17-6358-7');
        $bvr->setReferenceNumber(23456);
        $bvrRender = $this->get("sirgix.bvr.renderer");
        echo $bvrRender->renderBVR($bvr);

```

### Generate the HTML to print the BVR

[](#generate-the-html-to-print-the-bvr)

I have provided some html for the generation of the bvr html template. This can be used with mpdf to render a PDF. It should be placed at the end of a page. It has been tested with

```

        $bvrRender = $this->get("sirgix.bvr.renderer");
        echo $bvrRender->renderBVR($bvr);//$bvr is an instance of a BVR class

```

/!\\ THIS IS STILL WIP

### Banks

[](#banks)

Some banks have different ways to use the reference number. PosteBVR is the standard one. UbsBVR implements it for the UBS Bank

Warning
=======

[](#warning)

This is still work in progress and there could be bugs. Use at your own risk.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~1056 days

Total

2

Last Release

3284d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76fa1df14614f2be28500cd1a04e2c6e4004e3a809e634922b39dff1655f5318?d=identicon)[sirgix](/maintainers/sirgix)

---

Top Contributors

[![ragusa87](https://avatars.githubusercontent.com/u/1695207?v=4)](https://github.com/ragusa87 "ragusa87 (1 commits)")

---

Tags

BVRBVRBBVR plus

### Embed Badge

![Health badge](/badges/sirgix-bvr-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sirgix-bvr-bundle/health.svg)](https://phpackages.com/packages/sirgix-bvr-bundle)
```

###  Alternatives

[winzou/state-machine-bundle

Bundle for the very lightweight yet powerful PHP state machine

34010.4M15](/packages/winzou-state-machine-bundle)[stfalcon/tinymce-bundle

This Bundle integrates TinyMCE WYSIWYG editor into a Symfony2 project.

2692.9M24](/packages/stfalcon-tinymce-bundle)[sylius/taxonomy-bundle

Flexible categorization system for Symfony.

26388.2k7](/packages/sylius-taxonomy-bundle)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[sylius/addressing-bundle

Addressing and zone management for Symfony applications.

33221.4k3](/packages/sylius-addressing-bundle)[sylius/inventory-bundle

Flexible inventory management for Symfony applications.

19176.7k4](/packages/sylius-inventory-bundle)

PHPackages © 2026

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