acet/reslock (packagist): Dependable advisory resource lock - for files and other contentious resources
Keywords: php|lock|flock|file lock|race condition|advisory lock|resource lock