If you are not using #Laravel as the example above or any framwork you can download composer with this command
sudo apt install composer
and init new composer.json
file to your project
composer init
WARNING: Only if your ne not using FrameWork ! |
---|
When file is set up if you re not using framework add autoload
composant to your composer.json
here an example how you can add it to your composer file :
"autoload": {
"psr-4": {
"App\\": "app/",
}
},
you can install Laravel by using this command or Clone the code Above
composer require laravel/laravel
sudo apt install pdftk
Or by downloading on official website https://www.pdflabs.com/tools/pdftk-server/
composer require mikehaertl/php-pdftk
next you can check to vendor/mikehaertl
if the folder exist
Feel free to get more informations about the library here : https://github.com/mikehaertl/php-pdftk
next you can check to vendor/codedge
if the folder exist
composer require codedge/laravel-fpdf
Feel free to get more informations about the library here : https://github.com/codedge/laravel-fpdf
Here an example how to edit form inside PDF using ADOBE acrobate and how to edit field name
Find an example of basic usage here