Skip to content

Tag: php

Amazon Polly AudioStream is always empty

I am trying to get Polly to read something for me, using PHP. I have created a new project, installed Amazon composer require aws/aws-sdk-php and then created a file with code from SDK documentation example and modified a few minor things such as changing credential from default to value, var_dump to var_expo…

How to ignore specific private static function with PHPUnit?

I’m new to PHPUnit and wondering is it possible to write a test for which ignore specific method. The code is like examine whether $data is Valid or not, and if it find irregular data, send message to slack with it. My question is, is it possible to run a test without sending alert message, like ignore …

PHP cURL login and loop through URLs stuck on first URL

I am trying to loop through part numbers to get their associated information. If I echo the part number it is always the same. even though the starting part number is correct. Ideas? This outputs… The first one is the only one that is correct. NOTICE WE04X10010 is being echoed as the part number in all …

PHP Laravel – Get array of models by search or return empty array

Very new to PHP and Laravel so this is probably a noob question. I know the $sites variable has content in it when I dd($sites); but when it comes to actually returning a value, I get nothing. Any thoughts what I am doing wrong? EDIT: The other function referenced above is here (shouldn’t really need it…

adding a hyperlink in a sms email

What I am trying to do is send a registration confirmation sms via email from my website. I have it working now but I want to make sure that people are putting in correct phone numbers and carrier data. When my message sends it will send the word link but its not clickable is there a way to make the