2017 © Pedro Peláez
 

library signal

image

phpninjas/signal

  • Monday, July 25, 2016
  • by james.turner.phpninja@gmail.com
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Signal

Requirements

pcntl library is REQUIRED for this to work., (*1)

Trapping Signals

// Simple message trap
Signal::trap(Signal::USR2, function()use(){
    echo "caught a signal!";
});

Blocking/Unblocking Signals

// Allows you to effectively ignore POSIX signals from the OS (except for KILL obviously)
Signal::block([Signal::USR2]);
Signal::unblock([Signal::USR2]);

The Versions

25/07 2016

dev-master

9999999-dev

  Sources   Download

The Requires

  • php >=5.5
  • ext-pcntl *

 

The Development Requires

25/07 2016

v0.1.0

0.1.0.0

  Sources   Download

The Requires

  • php >=5.5
  • ext-pcntl *

 

The Development Requires