Operating System | Instructions |
---|---|
macOS | Install PHP using the official macOS installer or by downloading and installing it. |
Linux | Download and install PHP using your favorite package installer. |
Windows | Use the official Windows installer. |
mkdir mylaravelapp
, then change to that directory and create a new Laravel project.
composer
command generates the autoload files, which you can include in your PHP source code by using the line
from
and to
on the PHLO console.
<auth_id>
and <auth_token>
with your authentication credentials, which you can find on the overview page of the Plivo console.auth_id
and auth_token
environment variables to avoid the possibility of accidentally committing them to source control. If you do this, you can initialize the client with no arguments and it will automatically fetch the values from the environment variables.<phlo_id>
with the PHLO_ID from the PHLO list screen of the Plivo console.<Caller_ID>
with a phone number you’ve purchased, and <Destination_Number>
with the phone number you’ll be calling. Both phone numbers should be in E.164 format.Route::match(['get', 'post'], '/triggerphlo', 'App\Http\Controllers\PhloController@triggerPhlo')