absszero/unicron

a unique process identifier

0.1 2016-01-08 07:45 UTC

This package is auto-updated.

Last update: 2024-04-19 23:15:15 UTC


README

A unique process manager

Managing processes by process ids and prevent duplicating processes.

Installation

composer require absszero/unicron

Usage

use Absszero\Unicron\Unicron;

$unicron = new Unicron('YOUR_PROCESS_NAME');

if ($unicron->isRunning()) {
	$unicron->kill();
}

$unicron->setPid();

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

TODO: Write history

Credits

TODO: Write credits

License

TODO: Write license