To upgrade PHP version to 7.2, add repository ppa:ondrej/php, do apt-get update and install php7.2 package.
PHP Xdebug installation on Fedora/CentOS x64
API could be consumed in many ways in Laravel. For e.g. you can create your own custom API Package to consume API on the remote application. Or there is a better way. This is by using the Guzzle HTTP Client.
Shows how to create simple custom API within your project that allows external application to consume it.
What is new in PHP 7 posted 2 years ago
Find out and learn some of the new features introduced in PHP7 such as Scalar Typehints, return type declarations and more. Also contribute your knowledge on PHP7 on this post.