Skip to content

Commit 044527f

Browse files
Converted to composer package and namespaces. Ext deps are coming via composer
1 parent 739c7d3 commit 044527f

28 files changed

+775
-2650
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor/
2+
composer.lock
3+
.idea/
4+

composer.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"name": "konekt/pdf-invoices",
3+
"description": "Library to generate PDF invoices",
4+
"type": "library",
5+
"license": "GPL",
6+
"keywords": ["invoice", "pdf", "konekt", "artkonekt"],
7+
"support": {
8+
"source": "https://github.com/artkonekt/pdf-invoices"
9+
},
10+
"authors": [
11+
{
12+
"name": "Attila Fulop",
13+
"homepage": "https://github.com/fulopattila122"
14+
}
15+
],
16+
"require": {
17+
"php": ">=5.6",
18+
"setasign/fpdf": "~1.8.1"
19+
},
20+
"require-dev": {
21+
"phpunit/phpunit": "~5.0"
22+
},
23+
"autoload": {
24+
"psr-4": { "Konekt\\PdfInvoice\\": "src/" }
25+
},
26+
"autoload-dev": {
27+
"psr-4": {
28+
"Konekt\\PdfInvoice\\Tests\\": "tests/"
29+
}
30+
}
31+
}

examples/change_timezone.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
include('../phpinvoice.php');
2+
include('../InvoicePrinter.php');
33
$invoice = new phpinvoice();
44
/* Header Settings */
55
$invoice->setTimeZone('America/Los_Angeles');
@@ -30,4 +30,4 @@
3030
$invoice->setFooternote("My Company Name Here");
3131
/* Render */
3232
$invoice->render('timezone.pdf','I'); /* I => Display on browser, D => Force Download, F => local path save, S => return document path */
33-
?>
33+
?>

examples/example1.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
include('../phpinvoice.php');
2+
include('../InvoicePrinter.php');
33
$invoice = new phpinvoice();
44
/* Header Settings */
55
$invoice->setLogo("images/sample1.jpg");
@@ -30,4 +30,4 @@
3030
$invoice->setFooternote("My Company Name Here");
3131
/* Render */
3232
$invoice->render('example1.pdf','I'); /* I => Display on browser, D => Force Download, F => local path save, S => return document path */
33-
?>
33+
?>

examples/example2.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
include('../phpinvoice.php');
2+
include('../InvoicePrinter.php');
33
$invoice = new phpinvoice();
44
/* Header Settings */
55
$invoice->setLogo("images/example3.jpg");
@@ -29,4 +29,4 @@
2929
$invoice->setFooternote("My Company Name Here");
3030
/* Render */
3131
$invoice->render('example2.pdf','D'); /* I => Display on browser, D => Force Download, F => local path save, S => return document path */
32-
?>
32+
?>

examples/simple.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
include('../phpinvoice.php');
2+
include('../InvoicePrinter.php');
33
$invoice = new phpinvoice();
44
/* Header Settings */
55
$invoice->setLogo("images/simple_sample.png");
@@ -19,4 +19,4 @@
1919
$invoice->addTotal("Total due",9460,true);
2020
/* Render */
2121
$invoice->render('example2.pdf','I'); /* I => Display on browser, D => Force Download, F => local path save, S => return document path */
22-
?>
22+
?>

inc/__autoload.php

-4
This file was deleted.

inc/fpdf/font/courier.php

-8
This file was deleted.

inc/fpdf/font/courierb.php

-8
This file was deleted.

inc/fpdf/font/courierbi.php

-8
This file was deleted.

inc/fpdf/font/courieri.php

-8
This file was deleted.

inc/fpdf/font/helvetica.php

-19
This file was deleted.

inc/fpdf/font/helveticab.php

-19
This file was deleted.

inc/fpdf/font/helveticabi.php

-19
This file was deleted.

inc/fpdf/font/helveticai.php

-19
This file was deleted.

inc/fpdf/font/symbol.php

-19
This file was deleted.

0 commit comments

Comments
 (0)