Registry / utility / infrajs-once

infrajs-once

JSON →
library1.0.11phppackagistunverified

A utility to ensure a function is executed only once.

composer require infrajs/once
INSTALL
IMPORT
SIG · INFRAJS-ONCE
I
infrajs-once
utilityphpv1.0.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Once
use Infrajs\Once\Once;

Execute a callback only once using the Once utility.

use Infrajs\Once\Once; $once = new Once(); $once->do(function() { echo 'This runs only once.'; });
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.11latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
infrajs-once — pip install infrajs-once · libregistry