-
Notifications
You must be signed in to change notification settings - Fork 551
Installation
Turan Furkan Topak edited this page May 4, 2021
·
5 revisions
Add PDFParser to your composer.json file :
{
"require": {
"smalot/pdfparser": "*"
}
}
Now ask for composer to download the bundle by running the command:
$ composer update smalot/pdfparser
First of all, download the library from Github by choosing a specific release or directly the master.
Once done, unzip it and run the following command line using composer.
$ composer update
This command will download any dependencies (Atoum library) and create the 'autoload.php' file.
Now create a new file with this content, in the same folder :
<?php
// Include 'Composer' autoloader.
include 'vendor/autoload.php';
// Your code
// ...
?>
In case you can't use Composer, you can include alt_autoload.php-dist
into your project. It will load all required files at once. Afterwards you can use PDFParser
class and others.
<?php
require __DIR__.'/../alt_autoload.php-dist';
// Your code
// ...
?>