i am using laravel 5.3. i want to install package for pdf file generation. when i run the command to install package it shows error that my php version not supports this package.
so how i can update the version?
Laravel 5.3 supports PHP 5.6.4 or up. So it's not your application you need to upgrade, but you need to upgrade the PHP version of your local or production environment.
If you run php --version you will see what php version you have on your server or local environment.
What package are trying to install? It may require a specific version of laravel, which if it's 5.7 needs php >= 7.1.3.
You might also have an older version of php in use by your webserver. In the root of your public directory add a file call phpinfo.php with these contents
<?php phpinfo(); ?>
Go to http://yoursite/phpinfo.php and see what version you are running. Delete the phpinfo.php file once your done