Skip to content

Commit c3daaca

Browse files
committed
Initial commit
0 parents  commit c3daaca

22 files changed

Lines changed: 1114 additions & 0 deletions
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.

.github/pull_request_template.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Description
2+
3+
Explain what are you submitting.
4+
5+
### Fixes
6+
7+
Enter the issue you are fixing (e.g. This fixes #1.).
8+
9+
10+
11+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/.idea

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Waap
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Laravel Vendus
2+
3+
Laravel wrapper for the waap/vendus-api package.
4+
5+
6+
## Installation
7+
8+
Install the PHP dependency
9+
```
10+
composer require waap/laravel-vendus
11+
```
12+
13+
Publish the configuration file (optional)
14+
```
15+
php artisan vendor:publish --provider=Waap\\Vendus\\Providers\\VendusServiceProvider --tag=config
16+
```
17+
18+
For setting up the API key, add this line to your `.env` file:
19+
```
20+
VENDUS_API_KEY=
21+
```
22+
23+
Cache the configurations
24+
```
25+
php artisan config:cache
26+
```
27+
28+
29+
## Translations
30+
31+
This package comes with some translations available that you can use to present messages of results of operations, etc.
32+
33+
Publish the translations file (optional)
34+
35+
```
36+
php artisan vendor:publish --provider=Waap\\Vendus\\Providers\\VendusServiceProvider --tag=translations
37+
```
38+
39+
---
40+
41+
## License
42+
43+
**waap/laravel-vendus** is open-sourced software licensed under the [MIT license](https://github.com/waap-agency/laravel-vendus/blob/master/LICENSE).
44+
45+
46+
## About waap
47+
48+
[waap](https://www.waap.pt) is a web development agency based in Matosinhos, Portugal. Oh, and we LOVE Laravel!

composer.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "waap/laravel-vendus",
3+
"description": "Laravel wrapper for the waap/vendus-api package.",
4+
"keywords": [
5+
"vendus",
6+
"faturação",
7+
"faturas",
8+
"recibos",
9+
"laravel-vendus",
10+
"laravel",
11+
"waap"
12+
],
13+
"authors": [
14+
{
15+
"name": "José Osório",
16+
"email": "jfrosorio@gmail.com",
17+
"role": "Developer"
18+
}
19+
],
20+
"license": "MIT",
21+
"require": {
22+
"php": "^7.3|^8.0",
23+
"laravel/framework": "^7.0|^8.0",
24+
"waap/vendus-api": "^1.0.0"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"Waap\\Vendus\\": "src/"
29+
}
30+
},
31+
"minimum-stability": "dev",
32+
"prefer-stable": true,
33+
"extra": {
34+
"laravel": {
35+
"providers": [
36+
"Waap\\Vendus\\Providers\\VendusServiceProvider"
37+
]
38+
}
39+
}
40+
}

config/vendus.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?php
2+
3+
return [
4+
5+
/*
6+
|--------------------------------------------------------------------------
7+
| Working Mode
8+
|--------------------------------------------------------------------------
9+
|
10+
| Here you can set your working mode.
11+
| Allowed values: normal, tests
12+
|
13+
*/
14+
'mode' => env('VENDUS_MODE', 'tests'),
15+
16+
'api_key' => env('VENDUS_API_KEY'),
17+
18+
'app_url' => env('VENDUS_APP_URL'),
19+
20+
];

resources/lang/en/messages.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
return [
4+
5+
'fr' => 'Invoice Receipt',
6+
'ft' => 'Invoice',
7+
'not_paid' => 'Not paid',
8+
'not_yet_synced' => 'This resource is not yet synced with Vendus.',
9+
'ot' => 'Quotation',
10+
'paid' => 'Paid',
11+
'payments' => 'Payment|Payments',
12+
'pf' => 'Proforma Invoice',
13+
'record_created_success' => 'The record has been successfully created on Vendus!',
14+
'record_deleted_success' => 'The record has been successfully deleted on Vendus!',
15+
'record_synced_success' => 'The record has been successfully synced with Vendus!',
16+
'record_updated_success' => 'The record has been successfully updated on Vendus!',
17+
'related_documents' => 'Related document|Related documents',
18+
'related_record_confirm_create' => 'Are you sure you want to create a related document?',
19+
'rg' => 'Receipt',
20+
'sales_documents' => 'Sales document|Sales documents',
21+
'synchronize' => 'Synchronize',
22+
'vendus' => 'Vendus',
23+
24+
];

resources/lang/pt/messages.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
return [
4+
5+
'fr' => 'Fatura Recibo',
6+
'ft' => 'Fatura',
7+
'not_paid' => 'Por pagar',
8+
'not_yet_synced' => 'Este recurso ainda não se encontra sincronizado com o Vendus.',
9+
'ot' => 'Orçamento',
10+
'paid' => 'Pago',
11+
'payments' => 'Pagamento|Pagamentos',
12+
'pf' => 'Fatura Pró-forma',
13+
'record_created_success' => 'O recurso foi criado no Vendus com sucesso!',
14+
'record_deleted_success' => 'O recurso foi atualizado no Vendus com sucesso!',
15+
'record_synced_success' => 'O recurso foi sincronizado com o Vendus com sucesso!',
16+
'record_updated_success' => 'O recurso foi removido do Vendus com sucesso!',
17+
'related_documents' => 'Documento relacionado|Documentos relacionados',
18+
'related_record_confirm_create' => 'Tem a certeza que pretende criar um documento relacionado?',
19+
'rg' => 'Recibo',
20+
'sales_documents' => 'Documentos de venda|Documentos de vendas',
21+
'synchronize' => 'Sincronizar',
22+
'vendus' => 'Vendus',
23+
24+
];

0 commit comments

Comments
 (0)