flock
spatie/ignition
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Portable advisory file locking
<?php flock
(
resource $stream
,
int $operation
,
int
&
$would_block
=
null
):
bool