Skip to content

Commit ac63a4d

Browse files
committed
migrate to elegantly
1 parent fb29977 commit ac63a4d

32 files changed

+121
-121
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/finller/laravel-invoices/discussions/new?category=q-a
4+
url: https://github.com/ElegantEngineeringTech/laravel-invoices/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/finller/laravel-invoices/discussions/new?category=ideas
7+
url: https://github.com/ElegantEngineeringTech/laravel-invoices/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a security issue
10-
url: https://github.com/finller/laravel-invoices/security/policy
10+
url: https://github.com/ElegantEngineeringTech/laravel-invoices/security/policy
1111
about: Learn how to notify us for sensitive bugs
1212
- name: Report a bug
13-
url: https://github.com/finller/laravel-invoices/issues/new
13+
url: https://github.com/ElegantEngineeringTech/laravel-invoices/issues/new
1414
about: Report a reproducable bug

CHANGELOG.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,46 +4,46 @@ All notable changes to `laravel-invoices` will be documented in this file.
44

55
## v3.0.2 - 2024-03-25
66

7-
**Full Changelog**: https://github.com/finller/laravel-invoices/compare/v3.0.1...v3.0.2
7+
**Full Changelog**: https://github.com/ElegantEngineeringTech/laravel-invoices/compare/v3.0.1...v3.0.2
88

99
## v3.0.1 - 2024-03-25
1010

1111
### What's Changed
1212

13-
* Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in https://github.com/finller/laravel-invoices/pull/16
13+
- Bump dependabot/fetch-metadata from 1.6.0 to 2.0.0 by @dependabot in https://github.com/ElegantEngineeringTech/laravel-invoices/pull/16
1414

15-
**Full Changelog**: https://github.com/finller/laravel-invoices/compare/v3.0.0...v3.0.1
15+
**Full Changelog**: https://github.com/ElegantEngineeringTech/laravel-invoices/compare/v3.0.0...v3.0.1
1616

1717
## v3.0.0 - 2024-03-25
1818

1919
** Breaking change **
2020

21-
- `getPreviousInvoice` method replaces `getLatestSerialNumberCount`.
21+
- `getPreviousInvoice` method replaces `getLatestSerialNumberCount`.
2222

2323
## v2.3.7 Laravel 11 - 2024-03-16
2424

25-
**Full Changelog**: https://github.com/finller/laravel-invoices/compare/v2.3.6...v2.3.7
25+
**Full Changelog**: https://github.com/ElegantEngineeringTech/laravel-invoices/compare/v2.3.6...v2.3.7
2626

2727
## v2.3.6 - 2024-03-14
2828

2929
### What's Changed
3030

31-
* Bump ramsey/composer-install from 2 to 3 by @dependabot in https://github.com/finller/laravel-invoices/pull/15
31+
- Bump ramsey/composer-install from 2 to 3 by @dependabot in https://github.com/ElegantEngineeringTech/laravel-invoices/pull/15
3232

33-
**Full Changelog**: https://github.com/finller/laravel-invoices/compare/v2.3.5...v2.3.6
33+
**Full Changelog**: https://github.com/ElegantEngineeringTech/laravel-invoices/compare/v2.3.5...v2.3.6
3434

3535
## v2.3.5 - 2024-02-05
3636

37-
**Full Changelog**: https://github.com/finller/laravel-invoices/compare/v2.3.4...v2.3.5
37+
**Full Changelog**: https://github.com/ElegantEngineeringTech/laravel-invoices/compare/v2.3.4...v2.3.5
3838

3939
## v2.3.4 - 2024-02-05
4040

41-
**Full Changelog**: https://github.com/finller/laravel-invoices/compare/v2.3.3...v2.3.4
41+
**Full Changelog**: https://github.com/ElegantEngineeringTech/laravel-invoices/compare/v2.3.3...v2.3.4
4242

4343
## v2.3.3 - 2024-02-05
4444

4545
### What's Changed
4646

47-
* Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in https://github.com/finller/laravel-invoices/pull/13
47+
- Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in https://github.com/ElegantEngineeringTech/laravel-invoices/pull/13
4848

49-
**Full Changelog**: https://github.com/finller/laravel-invoices/compare/v2.3.2...v2.3.3
49+
**Full Changelog**: https://github.com/ElegantEngineeringTech/laravel-invoices/compare/v2.3.2...v2.3.3

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) finller <[email protected]>
3+
Copyright (c) elegantly <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Everything You Need to Manage Invoices in Laravel
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/finller/laravel-invoices.svg?style=flat-square)](https://packagist.org/packages/finller/laravel-invoices)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/finller/laravel-invoices/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/finller/laravel-invoices/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/finller/laravel-invoices/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/finller/laravel-invoices/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/finller/laravel-invoices.svg?style=flat-square)](https://packagist.org/packages/finller/laravel-invoices)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/elegantly/laravel-invoices.svg?style=flat-square)](https://packagist.org/packages/elegantly/laravel-invoices)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/actions/workflow/status/elegantly/laravel-invoices/run-tests.yml?branch=main&label=tests&style=flat-square)](https://github.com/ElegantEngineeringTech/laravel-invoices/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/actions/workflow/status/elegantly/laravel-invoices/fix-php-code-style-issues.yml?branch=main&label=code%20style&style=flat-square)](https://github.com/ElegantEngineeringTech/laravel-invoices/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/elegantly/laravel-invoices.svg?style=flat-square)](https://packagist.org/packages/elegantly/laravel-invoices)
77

88
This package provides a robust, easy-to-use system for managing invoices within a Laravel application, with options for database storage, serial numbering, and PDF generation.
99

@@ -51,7 +51,7 @@ Try out [the interactive demo](https://elegantengineering.tech/laravel-invoices)
5151
You can install the package via composer:
5252

5353
```bash
54-
composer require finller/laravel-invoices
54+
composer require elegantly/laravel-invoices
5555
```
5656

5757
You can publish and run the migrations with:
@@ -70,10 +70,10 @@ php artisan vendor:publish --tag="invoices-config"
7070
This is the contents of the published config file:
7171

7272
```php
73-
use Finller\Invoice\Models\Invoice;
74-
use Finller\Invoice\InvoiceDiscount;
75-
use Finller\Invoice\Models\InvoiceItem;
76-
use Finller\Invoice\Enums\InvoiceType;
73+
use Elegantly\Invoices\Models\Invoice;
74+
use Elegantly\Invoices\InvoiceDiscount;
75+
use Elegantly\Invoices\Models\InvoiceItem;
76+
use Elegantly\Invoices\Enums\InvoiceType;
7777

7878
return [
7979

@@ -193,7 +193,7 @@ return [
193193

194194
### Storing an Invoice in Your Database
195195

196-
You can store an Invoice in your database using the Eloquent Model: `Finller\Invoice\Models\Invoice`.
196+
You can store an Invoice in your database using the Eloquent Model: `Elegantly\Invoices\Models\Invoice`.
197197

198198
> [!NOTE]
199199
> Don't forget to publish and run the migrations
@@ -202,9 +202,9 @@ Here is a full example:
202202

203203
```php
204204
use Brick\Money\Money;
205-
use Finller\Invoice\Models\Invoice;
206-
use Finller\Invoice\Enums\InvoiceState;
207-
use Finller\Invoice\Enums\InvoiceType;
205+
use Elegantly\Invoices\Models\Invoice;
206+
use Elegantly\Invoices\Enums\InvoiceState;
207+
use Elegantly\Invoices\Enums\InvoiceType;
208208

209209
// Let's say your app edit invoices for your users
210210
$customer = User::find(1);
@@ -256,7 +256,7 @@ You can configure the format of your serial numbers in the configuration file. T
256256

257257
When `invoices.serial_number.auto_generate` is set to `true`, a unique serial number is assigned to each new invoice automatically.
258258

259-
Serial numbers are generated sequentially, with each new serial number based on the latest available one. To define what qualifies as the `previous` serial number, you can extend the `Finller\Invoice\Models\Invoice` class and override the `getPreviousInvoice` method.
259+
Serial numbers are generated sequentially, with each new serial number based on the latest available one. To define what qualifies as the `previous` serial number, you can extend the `Elegantly\Invoices\Models\Invoice` class and override the `getPreviousInvoice` method.
260260

261261
By default, the previous invoice is determined based on criteria such as prefix, series, year, and month for accurate, scoped numbering.
262262

@@ -273,7 +273,7 @@ For instance, you might want to define a unique series for each user, creating s
273273
When creating an invoice, you can dynamically specify the prefix and series as follows:
274274

275275
```php
276-
use Finller\Invoice\Models\Invoice;
276+
use Elegantly\Invoices\Models\Invoice;
277277
$invoice = new Invoice();
278278

279279
$invoice->configureSerialNumber(
@@ -380,7 +380,7 @@ class PaymentInvoice extends Mailable
380380

381381
To customize how your model is converted to a `PdfInvoice`, follow these steps:
382382

383-
1. **Create a Custom Model**: Define your own `\App\Models\Invoice` class and ensure it extends the base `\Finller\Invoice\Models\Invoice` class.
383+
1. **Create a Custom Model**: Define your own `\App\Models\Invoice` class and ensure it extends the base `\Elegantly\Invoices\Models\Invoice` class.
384384

385385
2. **Override the `toPdfInvoice` Method**: Implement your specific logic within the `toPdfInvoice` method to control the customization.
386386

@@ -399,7 +399,7 @@ If you need to set the logo dynamically on the invoice, for example, when allowi
399399
To dynamically set the logo, define the `getLogo` method as shown below:
400400

401401
```php
402-
class Invoice extends \Finller\Invoice\Models\Invoice
402+
class Invoice extends \Elegantly\Invoices\Models\Invoice
403403
{
404404
// ...
405405

@@ -426,7 +426,7 @@ You can even use this package exclusively for the `PdfInvoice` class if that sui
426426
Here’s an example of a fully configured `PdfInvoice` instance:
427427

428428
```php
429-
use Finller\Invoice\Pdf\PdfInvoice;
429+
use Elegantly\Invoices\Pdf\PdfInvoice;
430430

431431
$pdfInvoice = new PdfInvoice(
432432
name: "Invoice",
@@ -480,7 +480,7 @@ $pdfInvoice = new PdfInvoice(
480480
```php
481481
namespace App\Http\Controllers;
482482

483-
use Finller\Invoice\Pdf\PdfInvoice;
483+
use Elegantly\Invoices\Pdf\PdfInvoice;
484484

485485
class InvoiceController extends Controller
486486
{
@@ -519,7 +519,7 @@ class InvoiceController extends Controller
519519
```php
520520
namespace App\Http\Controllers;
521521

522-
use Finller\Invoice\Pdf\PdfInvoice;
522+
use Elegantly\Invoices\Pdf\PdfInvoice;
523523

524524
class Invoice extends Component
525525
{

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"name": "finller/laravel-invoices",
2+
"name": "elegantly/laravel-invoices",
33
"description": "Store invoices safely in your Laravel application",
44
"keywords": [
5-
"finller",
5+
"elegantly",
66
"laravel",
77
"invoices",
88
"laravel-invoices"
99
],
10-
"homepage": "https://github.com/finller/laravel-invoices",
10+
"homepage": "https://github.com/ElegantEngineeringTech/laravel-invoices",
1111
"license": "MIT",
1212
"authors": [
1313
{
@@ -37,13 +37,13 @@
3737
},
3838
"autoload": {
3939
"psr-4": {
40-
"Finller\\Invoice\\": "src",
41-
"Finller\\Invoice\\Database\\Factories\\": "database/factories"
40+
"Elegantly\\Invoices\\": "src",
41+
"Elegantly\\Invoices\\Database\\Factories\\": "database/factories"
4242
}
4343
},
4444
"autoload-dev": {
4545
"psr-4": {
46-
"Finller\\Invoice\\Tests\\": "tests",
46+
"Elegantly\\Invoices\\Tests\\": "tests",
4747
"Workbench\\App\\": "workbench/app/",
4848
"Workbench\\Database\\Factories\\": "workbench/database/factories/",
4949
"Workbench\\Database\\Seeders\\": "workbench/database/seeders/"
@@ -87,10 +87,10 @@
8787
"extra": {
8888
"laravel": {
8989
"providers": [
90-
"Finller\\Invoice\\InvoiceServiceProvider"
90+
"Elegantly\\Invoices\\InvoiceServiceProvider"
9191
],
9292
"aliases": {
93-
"Invoice": "Finller\\Invoice\\Facades\\Invoice"
93+
"Invoice": "Elegantly\\Invoices\\Facades\\Invoice"
9494
}
9595
}
9696
},

config/invoices.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
use Finller\Invoice\Enums\InvoiceType;
6-
use Finller\Invoice\InvoiceDiscount;
7-
use Finller\Invoice\Models\Invoice;
8-
use Finller\Invoice\Models\InvoiceItem;
5+
use Elegantly\Invoices\Enums\InvoiceType;
6+
use Elegantly\Invoices\InvoiceDiscount;
7+
use Elegantly\Invoices\Models\Invoice;
8+
use Elegantly\Invoices\Models\InvoiceItem;
99

1010
return [
1111

database/factories/InvoiceFactory.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
declare(strict_types=1);
44

5-
namespace Finller\Invoice\Database\Factories;
5+
namespace Elegantly\Invoices\Database\Factories;
66

77
use Carbon\Carbon;
8-
use Finller\Invoice\Enums\InvoiceState;
9-
use Finller\Invoice\Enums\InvoiceType;
10-
use Finller\Invoice\Models\Invoice;
11-
use Finller\Invoice\Support\Address;
12-
use Finller\Invoice\Support\Buyer;
13-
use Finller\Invoice\Support\Seller;
8+
use Elegantly\Invoices\Enums\InvoiceState;
9+
use Elegantly\Invoices\Enums\InvoiceType;
10+
use Elegantly\Invoices\Models\Invoice;
11+
use Elegantly\Invoices\Support\Address;
12+
use Elegantly\Invoices\Support\Buyer;
13+
use Elegantly\Invoices\Support\Seller;
1414
use Illuminate\Database\Eloquent\Factories\Factory;
1515

1616
/**

database/factories/InvoiceItemFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace Finller\Invoice\Database\Factories;
5+
namespace Elegantly\Invoices\Database\Factories;
66

77
use Brick\Money\Money;
8-
use Finller\Invoice\Models\InvoiceItem;
8+
use Elegantly\Invoices\Models\InvoiceItem;
99
use Illuminate\Database\Eloquent\Factories\Factory;
1010

1111
/**

database/migrations/migrate_serial_number_details_columns_to_invoices_table.php.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use Illuminate\Database\Migrations\Migration;
44
use Illuminate\Database\Schema\Blueprint;
55
use Illuminate\Support\Facades\Schema;
66
use Illuminate\Database\Eloquent\Collection;
7-
use Finller\Invoice\Models\Invoice;
7+
use Elegantly\Invoices\Models\Invoice;
88
use Illuminate\Database\Eloquent\Model;
99

1010
return new class extends Migration

src/Casts/Discounts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
declare(strict_types=1);
44

5-
namespace Finller\Invoice\Casts;
5+
namespace Elegantly\Invoices\Casts;
66

7-
use Finller\Invoice\InvoiceDiscount;
7+
use Elegantly\Invoices\InvoiceDiscount;
88
use Illuminate\Contracts\Database\Eloquent\CastsAttributes;
99
use Illuminate\Database\Eloquent\Casts\Json;
1010
use Illuminate\Database\Eloquent\Model;

0 commit comments

Comments
 (0)