R
R
Ruslan Ibragimov2017-04-24 13:35:33
PHP
Ruslan Ibragimov, 2017-04-24 13:35:33

What is the best framework for working with APIs of third-party sites via cron?

Hello people, there is a task to make SMS notifications for clients, the data will be taken from a third-party service via API, information will be requested by the crown every 5 minutes, if something new has appeared, then we climb into the database for the phone number and other information and notify the client by sending SMS ( also through a third-party service)..
there will be no interface at all, everything will be through cron
. I know yii1, yii2, but they are weighty and redundant.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Timofeev, 2017-04-24
@webinar

On the one hand , the Camaro67 is right and the self-writing will be more justified in terms of load. On the other hand, on the framework it will be faster and easier to implement, and then it may still be necessary to finish or stir up the admin panel in order to view statistics and so on. Then the framework is it.
Regarding yii1 - we forget and use yii2. I didn't understand about weightiness. 50 mb is 10 minutes of video or 100 pictures. Trouble finding 50 MB on disk?
And in terms of server load, well, phalcon is faster, but development on it will be more difficult, here are the tests:
www.skillz.ru/dev/php/article-popular-php-framewor...

B
BoShurik, 2017-04-24
@BoShurik

Take a Dependency Injection container: PHP-DI , symfony/dependency-injection , pimple/pimple
Take a console component: symfony/console
Take a database component: doctrine/dbal , PDO ...

R
Rastishka, 2017-05-15
@Rastishka

If the task is as simple as you described, then it doesn't matter.
Choose what you know better, at least yii, at least vanilla php.
In fact, there are only 2 scripts.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question