PHPackages                             akamstar/freemecef - 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. akamstar/freemecef

ActiveLibrary

akamstar/freemecef
==================

Simple PHP emecef integration

1.1.2(3y ago)039MITPHPPHP &gt;=5.6

Since Dec 27Pushed 3y ago1 watchersCompare

[ Source](https://github.com/akamstar/freemecef)[ Packagist](https://packagist.org/packages/akamstar/freemecef)[ RSS](/packages/akamstar-freemecef/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

Freemecef
=========

[](#freemecef)

\[EN\] Freemecef makes it possible to issue standardized invoices with the emecef API of the DGI with PHP

\[FR\] Freemecef permet d'émettre de factures normalisées avec l'API emecef de la DGI avec PHP

Usage
-----

[](#usage)

```
//set a valide jwt token
$token = "eyJhbGciOiJ...";

```

### Invoice API

[](#invoice-api)

```
// Create new MecefInfo object
// second parameter: false = test env, true = prod env, default: false
$mecefinfo =new \Freemecef\EmecefInfo($token);

//get info
$info = $mecefinfo->getInfo();

//print result
print_r($info->json();

// you can also use
->getTaxGroups() to get tax groups
->getInvoiceTypes() to get invoice types
->getPaymentTypes() to get payment types

```

### Info API

[](#info-api)

```
emecef = (new \Freemecef\Emecef($token))->setClient("Papa na Venza")->setInvoiceType(InvoiceTypes::VENTE)
    ->setOperator("Tonton")
    ->addPaymentType(PaymentTypes::ESPECES, 100) // you can add multiple payment types
    ->addProduct('Article 2',50, 1); // you can add multiple products

$invoice = $emecef->invoice()->json();

$data = $emecef->execute($invoice['uid'])->json())->json();

```

For more
--------

[](#for-more)

For more, read Emecef documentation at [DGI website](https://impots.bj)

Contact me
----------

[](#contact-me)

On twitter [@tontonakam](https://twitter.com/tontonakam)

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity44

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

Every ~1 days

Total

5

Last Release

1229d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/800052862d499b7b0cc9aa004cb5b598cd163cce14b958d27ac02f33001f6959?d=identicon)[akamstar](/maintainers/akamstar)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/akamstar-freemecef/health.svg)

```
[![Health](https://phpackages.com/badges/akamstar-freemecef/health.svg)](https://phpackages.com/packages/akamstar-freemecef)
```

###  Alternatives

[neuron-core/neuron-ai

The PHP Agentic Framework.

1.8k245.3k21](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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