Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Smart Bill

LicenseStablePHPIssuesMerge Requests

Description

Smart Bill integrates Laravel Enso with the SmartBill invoicing API.

The package stores integration settings, exposes the backoffice settings form, and provides action classes for issuing, downloading, and cancelling invoices through the remote API.

It is intended for commercial flows that need SmartBill as the fiscal invoice provider while keeping invoice payload composition inside Enso resources.

Installation

Install the package:

composer require laravel-enso/smart-bill

Run the package migrations:

php artisan migrate

Features

  • Settings screen for base URL, auth token, username, VAT code, invoice series, and enablement.
  • Action classes for invoice issue, download, and cancel flows.
  • SmartBill endpoint wrappers separated from the invoice resource builders.
  • Invoice resource mapping for clients and product rows.

Usage

Main route group:

  • integrations.smartBill.settings.*

Typical invoice issue flow:

use LaravelEnso\SmartBill\Actions\Invoice\Issue;

(new Issue($client, $address, $products, $data))->handle();

Settings validation requires remote credentials when the integration is enabled.

API

HTTP routes

  • GET api/integrations/smartBill/settings
  • PATCH api/integrations/smartBill/settings/{settings}

Invoice actions

  • LaravelEnso\\SmartBill\\Actions\\Invoice\\Issue
  • LaravelEnso\\SmartBill\\Actions\\Invoice\\Download
  • LaravelEnso\\SmartBill\\Actions\\Invoice\\Cancel

Behavior:

  • builds SmartBill payloads through invoice resources
  • calls dedicated API endpoints
  • persists local invoice references for later retrieval

Depends On

Required Enso packages:

  • laravel-enso/api ↗
  • laravel-enso/core ↗
  • laravel-enso/enums ↗
  • laravel-enso/helpers ↗

Companion frontend package:

  • @enso-ui/smart-bill ↗
Edit this page on GitHub
Last Updated: 4/20/2026, 6:08:34 PM
Prev
Services
Next
Sms Advert