PHPackages                             webrteu/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. webrteu/smartbill

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

webrteu/smartbill
=================

SmartBill integration for Auditor

1.0.1(2mo ago)03MITPHPPHP ^8.2

Since Feb 22Pushed 2mo agoCompare

[ Source](https://github.com/WeBRTeu/smartbill)[ Packagist](https://packagist.org/packages/webrteu/smartbill)[ RSS](/packages/webrteu-smartbill/feed)WikiDiscussions main Synced 1w ago

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

WeBRTeu SmartBill
=================

[](#webrteu-smartbill)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5a7e69e2bfc3d31009dcca13774a05634c1a90faea6f36f2ad2b765e325883f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776562727465752f736d61727462696c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webrteu/smartbill)[![Total Downloads](https://camo.githubusercontent.com/229fc69d01b5d6891e379a7f3d95eda1fd826af03cb8b0dc5dc19beca5d45a7b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f776562727465752f736d61727462696c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webrteu/smartbill)[![License](https://camo.githubusercontent.com/9dd46614f13f8721841c15b9b2af1b421862b8b71ad56cbbf7c271e996f107d2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f776562727465752f736d61727462696c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/webrteu/smartbill)

A Laravel package providing seamless integration with the SmartBill API for generating, downloading, and managing invoices (proforma and fiscal).

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10.0+ / 11.0+ / 12.0+

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

[](#installation)

You can install the package via composer:

```
composer require webrteu/smartbill
```

Publish the config file with:

```
php artisan vendor:publish --tag="smartbill-config"
```

Add the required variables to your `.env` file:

```
SMARTBILL_EMAIL=your_email@example.com
SMARTBILL_TOKEN=your_smartbill_api_token
SMARTBILL_CIF=RO12345678
SMARTBILL_TEST=false
SMARTBILL_API_URL=https://ws.smartbill.ro/SBORO/api
SMARTBILL_SERIE_FACTURA=WEBRT_FACT_
SMARTBILL_SERIE_PROFORMA=WEBRT_PROF_
```

Usage
-----

[](#usage)

The `SmartBillService` is registered as a singleton in the Laravel Service Container. You can resolve it via dependency injection or using the `app()` helper.

### Sending an Invoice

[](#sending-an-invoice)

```
use WeBRTeu\SmartBill\SmartBillService;

// Resolve the instance
$smartBillService = app(SmartBillService::class);

// Send an invoice
$result = $smartBillService->sendInvoice($invoice);

if ($result['success']) {
    echo "Invoice saved with series: " . $result['series'] . " and number: " . $result['number'];
} else {
    echo "Error: " . $result['error'];
}
```

### Available Methods

[](#available-methods)

- `$smartBillService->sendInvoice(Invoice $invoice)`: Sends a new invoice to SmartBill.
- `$smartBillService->downloadInvoicePdf(string $series, string $number)`: Downloads the requested invoice PDF.
- `$smartBillService->deleteInvoice(string $series, string $number, bool $cancel = false)`: Deletes or cancels a specific invoice in the SmartBill system.

### Testing / Sandbox Mode

[](#testing--sandbox-mode)

For testing purposes, a sandbox mode is available by making sure the test variable is set to true in your `.env` file:

```
SMARTBILL_TEST=true
```

Credits
-------

[](#credits)

- [WeBRTeu](https://webrteu.eu)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance83

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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 ~0 days

Total

2

Last Release

86d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/246259666?v=4)[WeBRT.eu](/maintainers/webrteu)[@WeBRTeu](https://github.com/WeBRTeu)

---

Top Contributors

[![BrTDevil](https://avatars.githubusercontent.com/u/117558644?v=4)](https://github.com/BrTDevil "BrTDevil (1 commits)")[![WeBRTeu](https://avatars.githubusercontent.com/u/246259666?v=4)](https://github.com/WeBRTeu "WeBRTeu (1 commits)")

### Embed Badge

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

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

###  Alternatives

[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[beyondcode/laravel-favicon

Create dynamic favicons based on your environment settings.

37345.5k](/packages/beyondcode-laravel-favicon)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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