PHPackages                             ahsanshabbir/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. [API Development](/categories/api)
4. /
5. ahsanshabbir/smartbill

ActiveLibrary[API Development](/categories/api)

ahsanshabbir/smartbill
======================

SmartBill API wrapper compatible for laravel9

v1.2.0(1y ago)0199MITPHPPHP ^7.2.5|^8.0|^8.1|^8.2|^8.3

Since Mar 15Pushed 1y agoCompare

[ Source](https://github.com/AhsanShabbir/smartbill)[ Packagist](https://packagist.org/packages/ahsanshabbir/smartbill)[ Docs](https://github.com/AhsanShabbir/smartbill)[ RSS](/packages/ahsanshabbir-smartbill/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (3)Versions (11)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)[![Build Status](https://camo.githubusercontent.com/58d216d6fa798c0028cf150c929cb0d24fb74ebbcecfd7ff7ae5a4c496736d3c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6e6563656e7a757261742f736d61727462696c6c2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/necenzurat/smartbill)[![Quality Score](https://camo.githubusercontent.com/97ac5e8ee74b32593e6c810fa4770b8a845d1bb9e04a72a49f2f29d35de5c089/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6e6563656e7a757261742f736d61727462696c6c2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/necenzurat/smartbill)[![Total Downloads](https://camo.githubusercontent.com/307f0a72935af640df739999d823577e116bfeb6be32c4ee958d1a197744a563/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6563656e7a757261742f736d61727462696c6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/necenzurat/smartbill)

Simple SmartBill API integration for Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require necenzurat/smartbill
```

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

37

—

LowBetter than 82% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity81

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 72.7% 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 ~217 days

Recently: every ~341 days

Total

10

Last Release

655d ago

Major Versions

0.1.0 → v1.0.02019-03-15

PHP version history (5 changes)0.1.0PHP ^7.1

1.0.6PHP ^7.2|^8.0

1.0.9PHP ^7.2.5|^8.0

1.1.0PHP ^7.2.5|^8.0|^8.1

v1.2.0PHP ^7.2.5|^8.0|^8.1|^8.2|^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/51ca63158e294c47c700a50b64c0935aa66dea58684a8e2fadb54244ddaeff42?d=identicon)[AhsanShabbir](/maintainers/AhsanShabbir)

---

Top Contributors

[![necenzurat](https://avatars.githubusercontent.com/u/145449?v=4)](https://github.com/necenzurat "necenzurat (16 commits)")[![AhsanShabbir](https://avatars.githubusercontent.com/u/13930306?v=4)](https://github.com/AhsanShabbir "AhsanShabbir (6 commits)")

---

Tags

smartbillnecenzuratahsanshabbir

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

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