hex-abyss/duplicate

To check is duplicate process

v1.0.0 2021-08-05 12:26 UTC

This package is auto-updated.

Last update: 2025-06-29 02:07:20 UTC


README

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist hex-abyss/duplicate "*"

or add

"hex-abyss/duplicate": "*"

to the require section of your composer.json file.

Usage

while(true){
    //some code
    if (\hexAbyss\Duplicate::isStopProcess())
        break;
}
while(true){
    //some code
    \hexAbyss\Duplicate::isExit();
}
//file: index.php
while(true){
    //some code
    if (\hexAbyss\Duplicate::isStopProcess())
        break;
}

//file: info.php
\hexAbyss\Duplicate::getInstance('keyInfo');
while(true){
    //some code
    if (\hexAbyss\Duplicate::isStopProcess())
        break;
}

License

The source code for the site is licensed under the MIT license, which you can find in the MIT-LICENSE.md file.