Skip to content

Commit

Permalink
Move code to subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
madnh committed Jun 21, 2016
1 parent 086ad41 commit 64cf025
Show file tree
Hide file tree
Showing 17 changed files with 176 additions and 60 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/vendor/
/.idea/
224 changes: 168 additions & 56 deletions .idea/workspace.xml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-4": {"MaDnh\\": "src/"}
},
"minimum-stability": "dev",
"repositories": [
{
Expand Down
4 changes: 2 additions & 2 deletions examples/ex-array.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Sample using a PHP array
****************************/

require('../fpdm.php');
require('../src/fpdm.php');

$fields = array(
'name' => 'My name',
Expand All @@ -13,7 +13,7 @@
'phone' => 'My phone number'
);

$pdf = new FPDM('template.pdf');
$pdf = new MaDnh\FPDM('template.pdf');
$pdf->Load($fields, false); // second parameter: false if field values are in ISO-8859-1, true if UTF-8
$pdf->Merge();
$pdf->Output();
Expand Down
4 changes: 2 additions & 2 deletions examples/ex-fdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
Sample using an FDF file
****************************/

require('../fpdm.php');
require('../src/fpdm.php');

$pdf = new FPDM('template.pdf', 'fields.fdf');
$pdf = new MaDnh\FPDM('template.pdf', 'fields.fdf');
$pdf->Merge();
$pdf->Output();
?>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 64cf025

Please sign in to comment.