Skip to content

Commit

Permalink
feat: updated to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
dveldhoen committed Jan 31, 2024
1 parent 573dced commit 33e2e20
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ use BudgetInvoice\EasyInvoice

// Set the data you wish to see on your invoice
$invoiceData = [
"apiKey" => "free", // Please register to receive a production apiKey: https://app.budgetinvoice.com/register
"mode" => "development", // Production or development, defaults to production
"product": [
"quantity" => 2,
"description" => "Product 1",
Expand Down Expand Up @@ -326,6 +328,8 @@ Used for number formatting and the currency symbol:
```php
//E.g. for Germany, prices would look like 123.456,78 €
$data = [
"apiKey" => "free", // Please register to receive a production apiKey: https://app.budgetinvoice.com/register
"mode" => "development", // Production or development, defaults to production
"settings" => [
"locale" => "de-DE",
"currency" => "EUR"
Expand All @@ -334,6 +338,8 @@ $data = [

//E.g. for US, prices would look like $123,456.78
$data = [
"apiKey" => "free", // Please register to receive a production apiKey: https://app.budgetinvoice.com/register
"mode" => "development", // Production or development, defaults to production
"settings" => [
"locale" => "en-US",
"currency" => "USD"
Expand Down Expand Up @@ -364,6 +370,8 @@ Supported file types:

```php
$invoiceData = [
"apiKey" => "free", // Please register to receive a production apiKey: https://app.budgetinvoice.com/register
"mode" => "development", // Production or development, defaults to production
"images" => [
"logo" => "https://public.easyinvoice.cloud/img/logo_en_original.png",
"background" => "https://public.easyinvoice.cloud/img/watermark_draft.jpg"
Expand All @@ -375,6 +383,8 @@ $invoiceData = [

```php
$invoiceData = [
"apiKey" => "free", // Please register to receive a production apiKey: https://app.budgetinvoice.com/register
"mode" => "development", // Production or development, defaults to production
//Note: Sample base64 string
//Please use the link below to convert your image to base64
"images":[
Expand Down Expand Up @@ -402,6 +412,8 @@ Supported file types:
$html = "<p>Hello world! This is invoice number %number%</p>";

$invoiceData = [
"apiKey" => "free", // Please register to receive a production apiKey: https://app.budgetinvoice.com/register
"mode" => "development", // Production or development, defaults to production
"customize" => [
"template" => base64_encode($html) // Your template must be base64 encoded
],
Expand Down

0 comments on commit 33e2e20

Please sign in to comment.