Level 61
$response = \Illuminate\Support\Facades\Http::get('google.com');
$size = strlen($response->body());
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey there,
if I have a job (or simply a request) that fetches resources from another website, say another API or RSS feed or even a full HTML page. How can I calculate how much bandwidth is used?
I wouldn't want to blow up my hosting bandwidth, so if I can calculate that and potentially put alarms it would be good. I know I can setup alarms in AWS but I'd like my app to be in charge of that.
Thanks
Please or to participate in this conversation.