1. Go to this page and download the library: Download valinteca-test/localization library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
Localization::to(['05xxxxxxxx', '05yyyyyyyy'])
->message('Hello {name}. Your order {order} will be delivered soon')
->sendPersonalized([
['name' => 'Mohammed', 'order' => '123'],
['name' => 'Ahmed', 'order' => '456'],
]);
// Messages:
// 05xxxxxxxx: "Hello Mohammed. Your order 123 will be delivered soon"
// 05yyyyyyyy: "Hello Ahmed. Your order 456 will be delivered soon"