Recommend this page to a friend! |
Classes of Ahmad Mustapha | React PHP Clock Timer | README.md | Download |
|
DownloadPHP ClockA clock description here... Installation
Usage
Clock::forEachSecond(function (){
}); Clock::forEachSecond(5, function (){
});
use Clock\Clock; Clock::forEachMinute(2, function (){
});
use Clock\Clock; Clock::forEachHour(1, function (){
});
use Clock\Clock; use React\EventLoop\TimerInterface; Clock::forEach('1 minute 5 seconds', function (){
}); Clock::forEach('2 minutes', function (TimerInterface $timer){
});
use Clock\Clock;use Clock\Sound; Sound::play(__DIR__ . '/test.mp3'); Clock::forEachMinute(function (){
});
use Clock\Clock; use Clock\Notification; $notification = Notification::create()
$notification
Clock::forEach('2 minutes', function () use ($notification){
});
|