PHP Classes

Schedule SMS in month, day, hours, minutes and seconds: Schedule SMS sending

Recommend this page to a friend!
  All requests RSS feed  >  Schedule SMS in month, day, hours, mi...  >  Request new recommendation  >  A request is featured when there is no good recommended package on the site when it is posted. Featured requests  >  No recommendations No recommendations  

Schedule SMS in month, day, hours, minutes and seconds

A request is featured when there is no good recommended package on the site when it is posted. Edit

Picture of Joshua Njovu by Joshua Njovu - 9 years ago (2015-02-12)

Schedule SMS sending

This request is clear and relevant.
This request is not clear or is not relevant.

+18

Many third party APIs for SMS sending can't schedule the message delivery.

I have a third party API for sending SMS but I want to schedule the delivery of SMS as well.

  • 2 Clarification requests
  • 10. Picture of Amos Mensah by Amos Mensah - 7 years ago (2016-12-03) Reply

    I am working on something of such , will upload once i am done , Please no critics. instead you can contribute to it Thanks .

    • 1. Picture of Manuel Lemos by Manuel Lemos - 9 years ago (2015-02-13) Reply

      If the API can't schedule the SMS message delivery, you can create a queue on a database with the messages that you want to send.

      Then you can use cron or whatever is your system scheduler to poll the queue and see if it is time for the next message to be delivered.

      I have not seen a class specifically to queue SMS messages, but it would not be hard to implement one.

      • 2. Picture of Gerry Danen by Gerry Danen - 9 years ago (2015-02-18) in reply to comment 1 by Manuel Lemos Comment

        This is the best solution, Joshua.

        Manuel is right. I do the same with weekly reports that are scheduled with cron to run Sunday night.

        I also have a cron job running every few minutes to look at a report queue (MySQL table with appropriate info), to see if a report needs to be run.

      • 3. Picture of Chi H. by Chi H. - 9 years ago (2015-02-19) in reply to comment 2 by Gerry Danen Comment

        Cron jobs is only for periodical events.

      • 4. Picture of Manuel Lemos by Manuel Lemos - 9 years ago (2015-02-19) in reply to comment 3 by Chi H. Comment

        Yes, but you can run a cron job periodically to check if it is time to send a scheduled message.

        If it is time, the message will be sent and removed from the queue. Otherwise nothing is done.

      • 5. Picture of Chi H. by Chi H. - 9 years ago (2015-02-22) in reply to comment 4 by Manuel Lemos Comment

        Imagine themesseage has. to be send continously for x days. Its not so simple to use a queue and dequeue it and look for the next message in the queue that neeeds also send continuously. You need some logic when the message start and stop sending plus the periodically event for example daily, weekly, monthly. There is only a few cron can do.

      • 6. Picture of Manuel Lemos by Manuel Lemos - 9 years ago (2015-02-22) in reply to comment 5 by Chi H. Comment

        The idea of the general poster is to schedule messages that will be sent only once, not periodically.

        So the message can be scheduled once at a specific time, not a period that needs to be repeated regularly.

      • 7. Picture of Chi H. by Chi H. - 9 years ago (2015-02-22) in reply to comment 6 by Manuel Lemos Comment

        Ues but its. not the same when you repeated events and my script. For example you can pre compute the whole year. It shows the start and stop date and also you. you define the time when it needs to run again.

      • 8. Picture of Manuel Lemos by Manuel Lemos - 9 years ago (2015-02-22) in reply to comment 7 by Chi H. Comment

        Yes, but what I got from the original poster is that he just wants to send individual messages only once at a specific date and time, not the same message regularly.

      • 9. Picture of Joshua Njovu by Joshua Njovu - 9 years ago (2015-03-23) in reply to comment 1 by Manuel Lemos Comment

        Manual, I want some kind of high level package, where you just pass let us assume , Date and a message, then the package does the rest of the work

      • 11. Picture of Dhananjay Kumar by Dhananjay Kumar - 6 years ago (2017-09-09) in reply to comment 1 by Manuel Lemos Comment

        dfasdfdsf

    Ask clarification

    2 Recommendations

    PHP Cron Daemon: Database driven PHP job scheduler like cron

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    +8

    Picture of Rizwan Abbas by Rizwan Abbas Reputation 130 - 9 years ago (2015-02-22) Comment

    you can try this package to schedule the sms

    • 3 Comments
    • 5. Picture of Youssef Essaaf by Youssef Essaaf - 7 years ago (2016-11-30) in reply to comment 4 by Rizwan Abbas Reply

      hi

    • 6. Picture of Youssef Essaaf by Youssef Essaaf - 7 years ago (2016-11-30) in reply to comment 4 by Rizwan Abbas Reply

      please give me your email adress. i have a job for you :)

    • 8. Picture of samroni by samroni - 6 years ago (2018-03-26) in reply to comment 4 by Rizwan Abbas Reply

      okay!


    PHP Sweepstakes: Calculate the days of periodical events

    This recommendation solves the problem.
    This recommendation does not solve the problem.

    -1

    Picture of Chi H. by Chi H. package author package author Reputation 95 - 9 years ago (2015-02-18) Comment

    You can try my package Sweepstakes. It used to calculate the days of periodical events and events over many days.

    • 4 Comments
    • 1. Picture of Manuel Lemos by Manuel Lemos - 9 years ago (2015-02-18) Reply

      The problem is not really calculating days, but rather start an action at a specific scheduled day.

    • 2. Picture of Chi H. by Chi H. package author package author - 9 years ago (2015-02-19) in reply to comment 1 by Manuel Lemos Reply

      Cron jobs is only for periodical events.

    • 3. Picture of Joshua Njovu by Joshua Njovu - 9 years ago (2015-03-23) in reply to comment 2 by Chi H. Reply

      Thanks gentalmen. Chi i appreciate that solution, but my forcus as Manuel has said is to send at a given PERIOD. The challenge with cron jobs though is the they require manual implementation. I though wanted some kind of abstraction.

    • 7. Picture of samroni by samroni - 6 years ago (2018-03-26) Reply

      yeah!


    Recommend package
    : 
    :