PHPackages                             necenzurat/smartbill - 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. [Payment Processing](/categories/payments)
4. /
5. necenzurat/smartbill

ActiveLibrary[Payment Processing](/categories/payments)

necenzurat/smartbill
====================

SmartBill API wrapper compatible for Laravel

1.1.5(3mo ago)149.9k↑18.5%7[1 issues](https://github.com/necenzurat/smartbill/issues)[1 PRs](https://github.com/necenzurat/smartbill/pulls)MITPHPPHP ^7.2.5|^8.0|^8.1|^8.2|^8.3|^8.4CI failing

Since Mar 15Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/necenzurat/smartbill)[ Packagist](https://packagist.org/packages/necenzurat/smartbill)[ Docs](https://github.com/necezurat/smartbill)[ RSS](/packages/necenzurat-smartbill/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (5)Versions (19)Used By (0)

SmartBill.ro Service Provider
=============================

[](#smartbillro-service-provider)

[![Latest Version on Packagist](https://camo.githubusercontent.com/4c03e9d49c1e7de2eff71e4bdfa41a24ccacb5b23bdc741b04b60855ea603219/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6563656e7a757261742f736d61727462696c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/necenzurat/smartbill)[![Total Downloads](https://camo.githubusercontent.com/307f0a72935af640df739999d823577e116bfeb6be32c4ee958d1a197744a563/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6563656e7a757261742f736d61727462696c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/necenzurat/smartbill)

Simple SmartBill API integration for Laravel.

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

[](#installation)

Step 1. Install the package via Composer:

```
composer require necenzurat/smartbill
```

Step 2. Publish the config file:

```
php artisan vendor:publish --provider="Necenzurat\SmartBill\SmartBillServiceProvider" --tag="config"
```

Step 3. Enter your account details in the `config/smartbill.php` file (API username, key, VAT code etc.).

Usage
-----

[](#usage)

Click for usage```
$invoice = [
    'companyVatCode' => config('smartbill.vatCode'),
    'client' 		=> [
        'name' 			=> "Intelligent IT",
        'vatCode' 		=> "RO12345678",
        'regCom' 		=> "",
        'address' 		=> "str. Sperantei, nr. 5",
        'isTaxPayer' 	=> false,
        'city' 			=> "Sibiu",
        'country' 		=> "Romania",
        'email' 		=> "office@intelligent.ro",
    ],
    'issueDate'      => date('Y-m-d'),
    'seriesName'     => config('smartbill.invoiceSeries'),
    'isDraft'        => false,
    'dueDate'		=> date('Y-m-d', time() + 3600 * 24 * 30),
    'mentions'		=> '',
    'observations'   => '',
    'deliveryDate'   => date('Y-m-d', time() + 3600 * 24 * 10),
    'precision'      => 2,
    'products'		=> [
        [
            'name' 				=> "Produs 1",
            'code' 				=> "ccd1",
            'isDiscount' 		=> false,
            'measuringUnitName' => "buc",
            'currency' 			=> "RON",
            'quantity' 			=> 2,
            'price' 			=> 10,
            'isTaxIncluded' 	=> true,
            'taxName' 			=> "Redusa",
            'taxPercentage' 	=> 9,
            'isService'         => false,
            'saveToDb'          => false,
        ],
    ],
];

echo 'Emitere factura simpla: ';
try {
    $smartbill = new SmartBill();
    $output = $smartbill->createInvoice($invoice); //see docs for response
    $invoiceNumber = $output['number'];
    $invoiceSeries = $output['series'];
    echo $invoiceSeries . $invoiceNumber;
} catch (\Exception $ex) {
    echo $ex->getMessage();
}
```

see the SmartBill demo app examples: [https://api.smartbill.ro/extension-files/aplicatie\_demo\_php.zip](https://api.smartbill.ro/extension-files/aplicatie_demo_php.zip)### Testing

[](#testing)

```
hell no
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [All Contributors](../../contributors)

License
-------

[](#license)

The WTFPL. Please see [License File](LICENSE.md) for more information.

###  Health Score

59

—

FairBetter than 98% of packages

Maintenance80

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 84.1% 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 ~183 days

Recently: every ~288 days

Total

15

Last Release

98d ago

Major Versions

0.1.0 → v1.0.12019-03-27

PHP version history (6 changes)v1.0.0PHP ^7.1

1.0.6PHP ^7.2|^8.0

1.0.9PHP ^7.2.5|^8.0

1.0.10PHP ^7.2.5|^8.0|^8.1

1.1.2PHP ^7.2.5|^8.0|^8.1|^8.2

1.1.4PHP ^7.2.5|^8.0|^8.1|^8.2|^8.3|^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea4683f3cd40515a967eedbefab53f6a9f08405eb5c7052bbd0b01f7f08d9360?d=identicon)[necenzurat](/maintainers/necenzurat)

---

Top Contributors

[![necenzurat](https://avatars.githubusercontent.com/u/145449?v=4)](https://github.com/necenzurat "necenzurat (37 commits)")[![AhsanShabbir](https://avatars.githubusercontent.com/u/13930306?v=4)](https://github.com/AhsanShabbir "AhsanShabbir (4 commits)")[![CosminBd](https://avatars.githubusercontent.com/u/37343923?v=4)](https://github.com/CosminBd "CosminBd (1 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (1 commits)")[![tabacitu](https://avatars.githubusercontent.com/u/1032474?v=4)](https://github.com/tabacitu "tabacitu (1 commits)")

---

Tags

hacktoberfestinvoicesmartbillinvoicesmartbill

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/necenzurat-smartbill/health.svg)

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

###  Alternatives

[laraveldaily/laravel-invoices

Missing invoices for Laravel

1.6k1.5M5](/packages/laraveldaily-laravel-invoices)[linkxtr/laravel-qrcode

A clean, modern, and easy-to-use QR code generator for Laravel

3720.4k](/packages/linkxtr-laravel-qrcode)[mayaram/laravel-ocr

Laravel OCR &amp; Document Data Extractor - A powerful OCR and document parsing engine for Laravel

691.7k](/packages/mayaram-laravel-ocr)

PHPackages © 2026

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