How to send SMS in PHP?

Helmet buyers SMS via the gateway(TurboSMS) by SoapClient. If the gateway is unavailable(or DDOS prevention)
the order is not executed, the buyer sees a 500 page, it's bad.
How to safely Otpusti for free , without emulation of multithreading and the creation of demons?
Could pinganut if you have the answer - a helmet - if not, then opossum ordering without SMS ? In General you need a quick working version with no claims to the correctness of the architecture and other practices, because now everything works vtupuyu, fit, and availability check is simple, here's how to organize it I would be glad to hear. Thank you in advance for your help.
July 9th 19 at 10:35
3 answers
July 9th 19 at 10:37
Solution
If the gateway is unavailable(or DDOS prevention)
the order is not issued, the buyer sees a page 500 that is bad
So you have in the code an error occurs that you cannot intercept.
Handle errors.

no emulation of multithreading and the creation of demons?

Learn PHP: php.net/manual/ru/language.exceptions.php

In General you need a quick working version with no claims to the correctness of the architecture and other practices

This is a controversial concept. In the long run the option, no claim for the correctness of the architecture and other practices will not work.
I'll try to catch the way eksepsi. Thank you.
5 years project by the way, I do not think that earned less money than some of your properly designed solution. - Delphine4 commented on July 9th 19 at 10:40
: I don't have their projects. I'm an employee, and I pay for the result. And code good quality allows you to better achieve results. - otho.Mraz23 commented on July 9th 19 at 10:43
: All right, no offense. - Delphine4 commented on July 9th 19 at 10:46
July 9th 19 at 10:39
So send a request and wait for response if not received - conduct without SMS.

Themselves are all described.

Code ready, nobody will.
July 9th 19 at 10:41
Is turn (in a relational DB or nosql). Further cron task runs on the queue and attempts to send a request to the SMS service. You can implement several attempts with the progressive taumata.

Find more questions by tags multithreadingSMSPHP