Skip to content

Time Limit Manager for PHP

I'm happy to announce the release of version 1.0.0 from the componen Time Limit Manager for PHP.

What is it good for?

  • provides easy setting of runtime limit
  • gives you the advantage to add a buffer before reaching the limit to easy up reacting when limit is reached
  • helps you to set the limit in seconds, minutes or hours (same for the buffer)
  • comes with DependentInterface and AwareInterface

How can i use it?

$manager = new Net\Bazzline\Component\TimeLimitManager\TimeLimitManager();

while (!empty($dataSet)) {
    if ($manager->isLimitReached()) {
        //exit while loop, shutdown process
    } else {
        $data = array_shift($dataSet);
        //work on data set

How can i install it?


mkdir -p vendor/net_bazzline/php_component_time_limit_manager
cd vendor/net_bazzline/php_component_time_limit_manager
git clone

With packagist

composer require net_bazzline/php_component_time_limit_manager:dev-master