Download the PHP package nexdev/invoice-creator without Composer
On this page you can find all versions of the php package nexdev/invoice-creator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package invoice-creator
Laravel Invoice Creator
A Laravel package for creating and managing invoices in your Laravel application.
Installation
1. Install the package with Composer
Run the following command in your Laravel project:
2. Setup the package
Run the following artisan command to install the package:
During the installation, you'll be prompted with two questions:
-
Install views? (yes/no) [no]
- This will publish the Invoice template, allowing you to customize the appearance of your invoices.
- Install config? (yes/no) [no]
- This will publish the configuration file.
3. Configure Storage (Optional)
If you want to store the invoices in storage, add the following storage disks to your config/filesystems.php file:
Note: The disk names should match those in the
invoices.phpconfig file. You can configure the drivers as needed, but maintain the same names.
Usage
Creating an Invoice
The package provides a fluent interface for creating invoices. Here's an example of how to create an outgoing invoice:
Available Methods
Seller
fields:
setName(string $name)setAddress(string $address)setZip(string $zip)setCity(string $city)setCountry(string $country)setEmail(string $email)setPhone(string $phone)setKvk(string $kvk)setVat(string $vat)
Buyer
fields:
setName(string $name)setAddress(string $address)setZip(string $zip)setCity(string $city)setCountry(string $country)setEmail(string $email)setPhone(string $phone)setKvk(string $kvk)setVat(string $vat)
Invoice
setLogo(string $path)setSeller(Seller $seller)setBuyer(Buyer $buyer)setId(string $id)saveToDatabase()saveToStorage()stream()
Features
- Fluent Interface: Easy-to-use method chaining for creating invoices
- Database Storage: Save invoice data to the database
- File Storage: Save generated invoices to storage
- Streaming: Stream the generated invoice directly to the browser
- Customizable: Modify the invoice template to match your brand
All versions of invoice-creator with dependencies
barryvdh/laravel-dompdf Version ^v3.1.1
illuminate/http Version ^10|^11|^12
illuminate/support Version ^10|^11|^12
laravel/framework Version ^10|^11|^12
symfony/http-foundation Version ^6|^7