@@ -21,7 +21,7 @@ This package is built for Laravel 10+ and provides a clean, developer-friendly A
2121- 🧮 ** Dynamic Invoice Generation** - From arrays, models, or JSON data
2222- 🌍 ** Multi-language Support** - 30+ popular languages out of the box
2323- 🌐 ** Multi-country Tax Systems** - GST, VAT, Sales Tax, etc.
24- - 🧱 ** Pre-built Templates** - Modern, Classic, Minimal designs
24+ - 🧱 ** Pre-built Templates** - Modern, Classic, Minimal, Business, Corporate designs
2525- 💾 ** Multiple Export Formats** - PDF, Image (PNG/JPEG), HTML
2626- 📤 ** Shareable Links** - Unique signed URLs for invoice sharing
2727- 🎨 ** Custom Branding** - Logo, color, header/footer customization
@@ -32,6 +32,9 @@ This package is built for Laravel 10+ and provides a clean, developer-friendly A
3232- 📧 ** Email Integration** - Send invoices directly via email
3333- 💱 ** Automatic Currency Conversion** - Real-time currency conversion
3434- 🚀 ** Fully Customizable** - Extensible and configurable
35+ - 📱 ** QR Code Generation** - Automatic QR code for invoice verification
36+ - ✍️ ** Digital Signatures** - Add digital signatures to invoices
37+ - 🖼️ ** Professional Templates** - Based on modern design principles
3538
3639---
3740
@@ -90,11 +93,12 @@ $data = [
9093 'currency' => 'USD',
9194 'language' => 'en',
9295 'notes' => 'Thank you for your business. Payment is due within 30 days.',
93- 'terms' => 'Please make checks payable to Your Company Name. Late payments are subject to a 1.5% monthly finance charge.'
96+ 'terms' => 'Please make checks payable to Your Company Name. Late payments are subject to a 1.5% monthly finance charge.',
97+ 'signature' => 'https://example.com/signature.png' // Optional digital signature
9498];
9599
96100InvoiceLite::make($data)
97- ->template('modern')
101+ ->template('business') // Try our new professional business template!
98102 ->currency('USD')
99103 ->export('pdf')
100104 ->save(storage_path('invoices/invoice.pdf'));
@@ -132,14 +136,14 @@ Laravel InvoiceLite supports 30+ popular languages out of the box:
132136// Generate invoice in Spanish
133137InvoiceLite::make($data)
134138 ->language('es')
135- ->template('modern ')
139+ ->template('business ')
136140 ->export('pdf')
137141 ->save(storage_path('invoices/invoice-es.pdf'));
138142
139143// Generate invoice in Japanese
140144InvoiceLite::make($data)
141145 ->language('ja')
142- ->template('modern ')
146+ ->template('corporate ')
143147 ->export('pdf')
144148 ->save(storage_path('invoices/invoice-ja.pdf'));
145149
@@ -153,6 +157,64 @@ InvoiceLite::make($data)
153157
154158---
155159
160+ ## 🎨 Professional Templates
161+
162+ We now offer 5 professional templates:
163+
164+ 1 . ** Modern** - Clean, gradient design with modern aesthetics
165+ 2 . ** Classic** - Traditional invoice layout with borders
166+ 3 . ** Minimal** - Simple, minimalist design
167+ 4 . ** Business** - Professional business template with QR code
168+ 5 . ** Corporate** - Corporate-style template with branding options
169+
170+ ### Template Preview
171+
172+ ![ Business Template] ( https://cdn.dribbble.com/userupload/22459797/file/original-ddcc7a7a689a009160d8d5d03385b428.png?resize=752x564&vertical=center )
173+ * Business Template*
174+
175+ ![ Corporate Template] ( https://cdn.dribbble.com/userupload/16092429/file/original-6c252a9a0e3dc275213c1b2a8327fb90.png?resize=752x&vertical=center )
176+ * Corporate Template*
177+
178+ ![ Modern Template] ( https://cdn.dribbble.com/userupload/10162802/file/original-ff594ddaf5218e3ca23f64cf64f36b87.png?resize=752x&vertical=center )
179+ * Modern Template*
180+
181+ ![ Classic Template] ( https://cdn.dribbble.com/userupload/17147152/file/original-c92136048f132531a06c921b6be0801b.jpg?resize=752x&vertical=center )
182+ * Classic Template*
183+
184+ ---
185+
186+ ## 📱 QR Code Generation
187+
188+ All invoices automatically include a QR code for easy verification:
189+
190+ ``` php
191+ // QR code is automatically generated
192+ InvoiceLite::make($data)
193+ ->template('business')
194+ ->export('pdf')
195+ ->save(storage_path('invoices/invoice-with-qr.pdf'));
196+ ```
197+
198+ ---
199+
200+ ## ✍️ Digital Signatures
201+
202+ Add digital signatures to your invoices:
203+
204+ ``` php
205+ $data = [
206+ // ... other data
207+ 'signature' => 'https://yourcompany.com/signature.png'
208+ ];
209+
210+ InvoiceLite::make($data)
211+ ->template('business')
212+ ->export('pdf')
213+ ->save(storage_path('invoices/invoice-with-signature.pdf'));
214+ ```
215+
216+ ---
217+
156218## 🌎 Multi-country Tax Support
157219
158220Support for country-specific tax systems:
@@ -170,7 +232,7 @@ $australiaTax = $taxCalculator->getCountryTaxRules('AU'); // Australia - GST (10
170232
171233// Use country-specific tax in invoice generation
172234InvoiceLite::make($data)
173- ->template('modern ')
235+ ->template('corporate ')
174236 ->export('pdf')
175237 ->save(storage_path('invoices/invoice-with-uk-tax.pdf'));
176238```
@@ -182,15 +244,15 @@ InvoiceLite::make($data)
182244### PDF Export (Default)
183245``` php
184246InvoiceLite::make($data)
185- ->template('modern ')
247+ ->template('business ')
186248 ->export('pdf')
187249 ->save(storage_path('invoices/invoice.pdf'));
188250```
189251
190252### HTML Export
191253``` php
192254InvoiceLite::make($data)
193- ->template('modern ')
255+ ->template('business ')
194256 ->export('html')
195257 ->save(storage_path('invoices/invoice.html'));
196258```
@@ -199,13 +261,13 @@ InvoiceLite::make($data)
199261``` php
200262// PNG export
201263InvoiceLite::make($data)
202- ->template('modern ')
264+ ->template('business ')
203265 ->export('png')
204266 ->save(storage_path('invoices/invoice.png'));
205267
206268// JPEG export
207269InvoiceLite::make($data)
208- ->template('modern ')
270+ ->template('business ')
209271 ->export('jpeg')
210272 ->save(storage_path('invoices/invoice.jpeg'));
211273```
@@ -232,37 +294,6 @@ $link = InvoiceLite::generateShareLink('INV-2025-001', now()->addMonths(3)); //
232294
233295---
234296
235- ## 🎨 Template Customization
236-
237- The package comes with three built-in templates:
238-
239- 1 . ** Modern** - Clean, gradient design with modern aesthetics
240- 2 . ** Classic** - Traditional invoice layout with borders
241- 3 . ** Minimal** - Simple, minimalist design
242-
243- ### Customizing Templates
244-
245- 1 . Publish the templates:
246- ``` bash
247- php artisan vendor:publish --tag=invoicelite-templates
248- ```
249-
250- 2 . Edit the templates in ` resources/views/vendor/invoicelite/ `
251-
252- 3 . Create your own custom templates by copying and modifying existing ones
253-
254- ### Using Custom Templates
255-
256- ``` php
257- // Use a custom template
258- InvoiceLite::make($data)
259- ->template('custom-corporate')
260- ->export('pdf')
261- ->save(storage_path('invoices/custom-invoice.pdf'));
262- ```
263-
264- ---
265-
266297## 💱 Currency Support
267298
268299Support for 20+ international currencies:
@@ -332,7 +363,7 @@ $invoices = [
332363
333364foreach ($invoices as $invoiceData) {
334365 InvoiceLite::make($invoiceData)
335- ->template('modern ')
366+ ->template('business ')
336367 ->export('pdf')
337368 ->save(storage_path("invoices/{$invoiceData['invoice_no']}.pdf"));
338369}
@@ -347,7 +378,7 @@ use SubhashLadumor1\InvoiceLite\Facades\InvoiceLite;
347378// Generate invoice
348379$invoicePath = storage_path('invoices/invoice.pdf');
349380InvoiceLite::make($data)
350- ->template('modern ')
381+ ->template('business ')
351382 ->export('pdf')
352383 ->save($invoicePath);
353384
@@ -367,7 +398,7 @@ The configuration file allows extensive customization:
367398
368399``` php
369400return [
370- 'default_template' => 'modern ',
401+ 'default_template' => 'business ',
371402 'default_currency' => 'USD',
372403 'default_language' => 'en',
373404 'supported_currencies' => [
@@ -380,7 +411,7 @@ return [
380411 'hu', 'ro', 'bg', 'el', 'th', 'vi', 'id', 'ms', 'he', 'uk',
381412 'sk', 'hr', 'lt', 'lv'
382413 ],
383- 'supported_templates' => ['modern', 'classic', 'minimal'],
414+ 'supported_templates' => ['modern', 'classic', 'minimal', 'business', 'corporate' ],
384415 'company' => [
385416 'name' => 'Your Company Name',
386417 'address' => '123 Main Street, City, Country',
@@ -402,6 +433,15 @@ return [
402433 'expire_days' => 30,
403434 'route_prefix' => 'invoice',
404435 ],
436+ 'qr_code' => [
437+ 'enabled' => true,
438+ 'size' => 100,
439+ 'format' => 'png',
440+ ],
441+ 'signature' => [
442+ 'enabled' => false,
443+ 'path' => '', // Path to signature image
444+ ],
405445];
406446```
407447
@@ -413,7 +453,7 @@ The package provides several helpful global functions:
413453
414454``` php
415455// Generate an invoice using the helper
416- invoice_lite()->make($data)->template('modern ')->export('pdf')->save($path);
456+ invoice_lite()->make($data)->template('business ')->export('pdf')->save($path);
417457
418458// Format currency
419459echo format_currency(1234.56, 'USD'); // $1,234.56
@@ -452,6 +492,7 @@ The MIT License (MIT). Please see [License File](LICENSE) for more information.
452492
453493- [ barryvdh/laravel-dompdf] ( https://github.com/barryvdh/laravel-dompdf ) - For PDF generation
454494- [ intervention/image] ( https://github.com/Intervention/image ) - For image processing
495+ - [ simplesoftwareio/simple-qrcode] ( https://github.com/SimpleSoftwareIO/simple-qrcode ) - For QR code generation
455496- All contributors who have helped shape this package
456497
457498---
0 commit comments