Semaphore PHP

Job ID: 36791083

Budget: $30 – $250 USD

Semaphore Implementation.
I have a php script that performs certain action, it always executes several times (2 to 10 times sometimes), whereas it's expected to execute only once. I did some research and found Semaphore will help ensure it executes only once. I need someone to implement this for me.

Server: CentOS
OS: Linux

I use Core PHP (no framework)