Skip to content

Commit e011996

Browse files
committed
wip
1 parent 9674fda commit e011996

21 files changed

+410
-230
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: :vendor_name
1+
github: andalisolutions

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Ask a question
4-
url: https://github.com/:vendor_slug/:package_slug/discussions/new?category=q-a
4+
url: https://github.com/andalisolutions/laravel-smartbill/discussions/new?category=q-a
55
about: Ask the community for help
66
- name: Request a feature
7-
url: https://github.com/:vendor_slug/:package_slug/discussions/new?category=ideas
7+
url: https://github.com/andalisolutions/laravel-smartbill/discussions/new?category=ideas
88
about: Share ideas for new features
99
- name: Report a bug
10-
url: https://github.com/:vendor_slug/:package_slug/issues/new
10+
url: https://github.com/andalisolutions/laravel-smartbill/issues/new
1111
about: Report a reproducable bug

.github/SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# Security Policy
22

3-
If you discover any security related issues, please email author@domain.com instead of using the issue tracker.
3+
If you discover any security related issues, please email andrei.ciungulete@andali.ro instead of using the issue tracker.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog
22

3-
All notable changes to `:package_name` will be documented in this file.
3+
All notable changes to `laravel-smartbill` will be documented in this file.
44

55
## 1.0.0 - 202X-XX-XX
66

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) :vendor_name <author@domain.com>
3+
Copyright (c) andalisolutions <andrei.ciungulete@andali.ro>
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: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# :package_description
1+
# This is my package laravel-smartbill
22

3-
[![Latest Version on Packagist](https://img.shields.io/packagist/v/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
4-
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/:vendor_slug/:package_slug/run-tests?label=tests)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3Arun-tests+branch%3Amain)
5-
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/:vendor_slug/:package_slug/Check%20&%20fix%20styling?label=code%20style)](https://github.com/:vendor_slug/:package_slug/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
6-
[![Total Downloads](https://img.shields.io/packagist/dt/:vendor_slug/:package_slug.svg?style=flat-square)](https://packagist.org/packages/:vendor_slug/:package_slug)
3+
[![Latest Version on Packagist](https://img.shields.io/packagist/v/andalisolutions/laravel-smartbill.svg?style=flat-square)](https://packagist.org/packages/andalisolutions/laravel-smartbill)
4+
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/andalisolutions/laravel-smartbill/run-tests?label=tests)](https://github.com/andalisolutions/laravel-smartbill/actions?query=workflow%3Arun-tests+branch%3Amain)
5+
[![GitHub Code Style Action Status](https://img.shields.io/github/workflow/status/andalisolutions/laravel-smartbill/Check%20&%20fix%20styling?label=code%20style)](https://github.com/andalisolutions/laravel-smartbill/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
6+
[![Total Downloads](https://img.shields.io/packagist/dt/andalisolutions/laravel-smartbill.svg?style=flat-square)](https://packagist.org/packages/andalisolutions/laravel-smartbill)
77

88
---
99
This repo can be used to scaffold a Laravel package. Follow these steps to get started:
1010

11-
1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this skeleton
11+
1. Press the "Use template" button at the top of this repo to create a new repo with the contents of this laravel-smartbill
1212
2. Run "php ./configure.php" to run a script that will replace all placeholders throughout all the files
1313
3. Remove this block of text.
1414
4. Have fun creating your package.
@@ -19,7 +19,7 @@ This is where your description should go. Limit it to a paragraph or two. Consid
1919

2020
## Support us
2121

22-
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/:package_name.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/:package_name)
22+
[<img src="https://github-ads.s3.eu-central-1.amazonaws.com/laravel-smartbill.jpg?t=1" width="419px" />](https://spatie.be/github-ad-click/laravel-smartbill)
2323

2424
We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).
2525

@@ -30,19 +30,19 @@ We highly appreciate you sending us a postcard from your hometown, mentioning wh
3030
You can install the package via composer:
3131

3232
```bash
33-
composer require :vendor_slug/:package_slug
33+
composer require andalisolutions/laravel-smartbill
3434
```
3535

3636
You can publish and run the migrations with:
3737

3838
```bash
39-
php artisan vendor:publish --provider="VendorName\Skeleton\SkeletonServiceProvider" --tag=":package_slug-migrations"
39+
php artisan vendor:publish --provider="Andali\Smartbill\SmartbillServiceProvider" --tag="laravel-smartbill-migrations"
4040
php artisan migrate
4141
```
4242

4343
You can publish the config file with:
4444
```bash
45-
php artisan vendor:publish --provider="VendorName\Skeleton\SkeletonServiceProvider" --tag=":package_slug-config"
45+
php artisan vendor:publish --provider="Andali\Smartbill\SmartbillServiceProvider" --tag="laravel-smartbill-config"
4646
```
4747

4848
This is the contents of the published config file:
@@ -55,8 +55,8 @@ return [
5555
## Usage
5656

5757
```php
58-
$skeleton = new VendorName\Skeleton();
59-
echo $skeleton->echoPhrase('Hello, VendorName!');
58+
$laravel-smartbill = new Andali\Smartbill();
59+
echo $laravel-smartbill->echoPhrase('Hello, Andali!');
6060
```
6161

6262
## Testing
@@ -79,7 +79,7 @@ Please review [our security policy](../../security/policy) on how to report secu
7979

8080
## Credits
8181

82-
- [:author_name](https://github.com/:author_username)
82+
- [Andrei Ciungulete](https://github.com/ciungulete)
8383
- [All Contributors](../../contributors)
8484

8585
## License

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
2-
"name": ":vendor_slug/:package_slug",
3-
"description": ":package_description",
2+
"name": "andalisolutions/laravel-smartbill",
3+
"description": "This is my package laravel-smartbill",
44
"keywords": [
5-
":vendor_name",
5+
"andalisolutions",
66
"laravel",
7-
":package_slug"
7+
"laravel-smartbill"
88
],
9-
"homepage": "https://github.com/:vendor_slug/:package_slug",
9+
"homepage": "https://github.com/andalisolutions/laravel-smartbill",
1010
"license": "MIT",
1111
"authors": [
1212
{
13-
"name": ":author_name",
14-
"email": "author@domain.com",
13+
"name": "Andrei Ciungulete",
14+
"email": "andrei.ciungulete@andali.ro",
1515
"role": "Developer"
1616
}
1717
],
@@ -30,13 +30,13 @@
3030
},
3131
"autoload": {
3232
"psr-4": {
33-
"VendorName\\Skeleton\\": "src",
34-
"VendorName\\Skeleton\\Database\\Factories\\": "database/factories"
33+
"Andali\\Smartbill\\": "src",
34+
"Andali\\Smartbill\\Database\\Factories\\": "database/factories"
3535
}
3636
},
3737
"autoload-dev": {
3838
"psr-4": {
39-
"VendorName\\Skeleton\\Tests\\": "tests"
39+
"Andali\\Smartbill\\Tests\\": "tests"
4040
}
4141
},
4242
"scripts": {
@@ -49,10 +49,10 @@
4949
"extra": {
5050
"laravel": {
5151
"providers": [
52-
"VendorName\\Skeleton\\SkeletonServiceProvider"
52+
"Andali\\Smartbill\\SmartbillServiceProvider"
5353
],
5454
"aliases": {
55-
"Skeleton": "VendorName\\Skeleton\\SkeletonFacade"
55+
"Smartbill": "Andali\\Smartbill\\SmartbillFacade"
5656
}
5757
}
5858
},

config/skeleton.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

config/smartbill.php

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?php
2+
return [
3+
/*
4+
|--------------------------------------------------------------------------
5+
| SmartBill credentials
6+
|--------------------------------------------------------------------------
7+
|
8+
| Here you need to supply the credentials for the SmartBill platform
9+
| and the token you can be found at the following link:
10+
| https://cloud.smartbill.ro/core/integrari/
11+
| and the username is your login email.
12+
|
13+
*/
14+
15+
'username' => env('SMARTBILL_USERNAME', ''),
16+
17+
'token' => env('SMARTBILL_TOKEN', 'smtp.mailgun.org'),
18+
19+
/*
20+
|--------------------------------------------------------------------------
21+
| Company VAT code
22+
|--------------------------------------------------------------------------
23+
|
24+
| The VAT code for the SmartBill account, you can have multiple
25+
| companies in SmartBill, but at the moment currently
26+
| one account is supported in this package
27+
|
28+
*/
29+
'vatCode' => env('SMARTBILL_VAT'),
30+
31+
/*
32+
|--------------------------------------------------------------------------
33+
| Invoice Series
34+
|--------------------------------------------------------------------------
35+
|
36+
| Here you may define your invoice, proforma and receipt starting series
37+
| But first you need to define them in SmartBill at the following link
38+
| https://cloud.smartbill.ro/core/configurare/serii/
39+
|
40+
*/
41+
42+
'invoiceSeries' => "TEST-INV",
43+
'proformaSeries' => "TEST-PRO",
44+
'receiptSeries' => "TEST-REC",
45+
];

configure.php

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)