-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7e7225
commit 5752f76
Showing
15 changed files
with
275 additions
and
517 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
# Schedulers | ||
Schedulers | ||
========== | ||
|
||
Schedulers are classes that allow scheduling messages at certain intervals or in particular times. | ||
|
||
## Simple scheduler | ||
|
||
Simple scheduler for sending messages at particular time | ||
Simple scheduler for sending messages at particular time. | ||
|
||
```php | ||
$scheduler = new Simple(new \DateTime()); | ||
$scheduler = new Simple(new DateTime('2025-12-13 12:00')); | ||
|
||
$scheduler->schedule($message); | ||
``` | ||
|
||
## Campaign | ||
|
||
Campaign scheduler allows you to start sending messages from particular time by at defined intervals. You can also define how many planned messages will be send out after certain interval. | ||
Campaign scheduler allows you to start sending messages from particular time by at defined intervals. You can also define how many planned messages will be sent out after certain interval. | ||
|
||
```php | ||
$scheduler = new Campaign(new \DateTime()); | ||
$scheduler->restriction(2, 2, "hours"); | ||
$scheduler = new Campaign(new DateTime('2025-12-13 12:00')); | ||
|
||
$scheduler->restriction(100 /* messages */, 2, 'hours'); | ||
|
||
$scheduler->schedule($message); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.