Download the PHP package cnrp/laravel-invoicer without Composer
On this page you can find all versions of the php package cnrp/laravel-invoicer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download cnrp/laravel-invoicer
More information about cnrp/laravel-invoicer
Files in cnrp/laravel-invoicer
Package laravel-invoicer
Short Description A flexible invoice package for Laravel using spatiepdf
License MIT
Informations about the package laravel-invoicer
Invoice Generator
Introduction
This package uses Spatie PDF to generate invoices. It simplifies the process of creating and managing invoices within a Laravel application.
Installation
To install the package, use Composer:
After installing the package, publish the configuration file:
Configuration
The configuration file is located at config/invoice.php
. It contains the following settings:
Node Binary Path
The node_binary
setting specifies the path to the Node.js executable on your machine. This is necessary for the package to function correctly.
-
Windows Example:
- Linux Example:
Ensure that the path is correctly set in your .env
file.
Usage
After installation and configuration, you can use the package to generate invoices.
Basic Example
This example demonstrates how to create a new invoice with client details, items, and a total amount, then save the generated PDF to a specified path. The colmns in the table are determined by the items you add, the only required value in an item is 'price'.
Theme
By default, it uses the css/invoice-clean.php
theme.
If you would like to change this, edit the published view at resources/views/vendor/invoice/default.blade.php
and change:
Or update the file at resources/css/invoice-clean.css.
License
This package is open-sourced software licensed under the MIT license.
All versions of laravel-invoicer with dependencies
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/view Version ^8.0|^9.0|^10.0
livewire/livewire Version ^3.5
spatie/browsershot Version ^4.0
spatie/laravel-pdf Version ^1.2