Building A Scheduler In Yii

Hey Everyone,

I am designing a scheduler for an app I am building and I want it to have these features.


  • Schedule Events Down to the Second

  • Support for Repeating Events (example every Monday at 2PM)

  • Triggered by Cron Job

What is the best way to implement this in Yii. I already have some ideas how to do this but I wanted to see if anyone had suggestions.


Try the recur extension

This is exactly what I am looking for, thank you so much! Do you (or anyone else) have experience using this extension? I am planning on using it in an environment which is fairly sensitive and requires a high degree of accuracy.

Can it fire events?, and if so what does it use for the trigger, cron jobs? I am planning on implementing this weekend but I just wanted some more info. Thanks!

I haven’t used the extension but I have used the ‘When’ code it is based on.

As far as how to trigger stuff. You can certainly setup cronjobs with a Yii console app to run whatever you need. Maybe if you share a little more about what you are trying to do I could suggest some architecture ideas.

Has anyone used this extension with Active Record? Has anyone figured out how to save rules to the DB?