![]() Sending composing notification (simulating typing) $identity->setPassword($user->password) // your password $identity->setIdentityToken($user->token) // your token $identity->setNickname($user->nickName) // your name $localizationService->injectPhoneProperties($phone) ![]() $phone = new Phone($user->phoneNum) // your phone number with international prefix $localizationService = new LocalizationService() WA::sendMessage($user->phoneNum, $message) Īnd have a message instantly sent? Instead of all this: $user = User::find(1) Ok ok, wouldn’t it be nice if we could do this in our projects at ANY stage: $message = "Hello $user->name and welcome to our website" ![]() ![]() Laravel does all the grunt work in setting up and maintaining the connection with Whatsapp and also allows you to use multiple accounts if you have them! A lot of us are now using Laravel in our PHP projects and this project attempts to take the wonderful readability of Laravel’s syntax and apply it to the WhatsApi code. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |