Skip to content

Commit 715d7bd

Browse files
authored
Merge pull request #6 from laercioacj/master
Change FPDF to Fpdf
2 parents adcdeab + 96139a0 commit 715d7bd

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
"autoload": {
2323
"psr-4": {
24-
"Crabbly\\FPDF\\": "src/"
24+
"Crabbly\\Fpdf\\": "src/"
2525
}
2626
},
2727

@@ -30,7 +30,7 @@
3030
"extra": {
3131
"laravel": {
3232
"providers": [
33-
"Crabbly\\FPDF\\FpdfServiceProvider"
33+
"Crabbly\\Fpdf\\FpdfServiceProvider"
3434
]
3535
}
3636
}

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ composer require crabbly/fpdf-laravel
2121
For your Laravel app, open `config/app.php` and, within the `providers` array, append:
2222

2323
```
24-
Crabbly\FPDF\FpdfServiceProvider::class
24+
Crabbly\Fpdf\FpdfServiceProvider::class
2525
```
2626

2727
This will bootstrap the package into Laravel.
@@ -32,14 +32,14 @@ This will bootstrap the package into Laravel.
3232
We can resolve the FPDF class instance out of the container:
3333

3434
```
35-
$pdf = app('FPDF');
35+
$pdf = app('Fpdf');
3636
3737
```
3838

3939
We can also instantiate it directly:
4040

4141
```
42-
$pdf = new Crabbly\FPDF\FPDF;
42+
$pdf = new Crabbly\Fpdf\Fpdf;
4343
```
4444

4545
## FPDF Documentation
@@ -54,7 +54,7 @@ Create a 'Hello World' PDF document and save it to a file in the storage folder:
5454
use Illuminate\Support\Facades\Storage;
5555
5656
//create pdf document
57-
$pdf = app('FPDF');
57+
$pdf = app('Fpdf');
5858
$pdf->AddPage();
5959
$pdf->SetFont('Arial','B',16);
6060
$pdf->Cell(40,10,'Hello World!');

src/Exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Crabbly\FPDF;
2+
namespace Crabbly\Fpdf;
33

44
class Exception extends \RuntimeException
55
{

src/Fpdf.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22

3-
namespace Crabbly\FPDF;
3+
namespace Crabbly\Fpdf;
44

55
/*******************************************************************************
6-
* FPDF *
6+
* Fpdf *
77
* *
88
* Version: 1.81 *
99
* Date: 2015-12-20 *
1010
* Author: Olivier PLATHEY *
1111
*******************************************************************************/
1212

13-
class FPDF
13+
class Fpdf
1414
{
1515
const FPDF_VERSION = '1.81';
1616

src/FpdfServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Crabbly\FPDF;
3+
namespace Crabbly\Fpdf;
44

55
use Illuminate\Support\ServiceProvider;
66

@@ -23,8 +23,8 @@ public function boot()
2323
*/
2424
public function register()
2525
{
26-
$this->app->bind('FPDF', function () {
27-
return new FPDF;
26+
$this->app->bind('Fpdf', function () {
27+
return new Fpdf;
2828
});
2929
}
3030
}

0 commit comments

Comments
 (0)