SkillAgentSearch skills...

PhpWebcam

This is a PHP library to capture webcam frames

Install / Use

/learn @vdechenaux/PhpWebcam
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Php Webcam

This is a PHP library to capture webcam frames.

Demo

You can see this library in action here with a simple Mjpeg stream implementation.

Requirements

Installation

composer require vdechenaux/webcam

Usage

<?php

require __DIR__ . '/vendor/autoload.php';

$webcam = new \VDX\Webcam\Webcam();

// It can produce an other size if your webcam does not support the provided size
$webcam->setDesiredSize(1280, 720);

if ($webcam->open()) {
    $webcam->saveFrame('/tmp/test.jpg'/*, true*/); // It accepts a second parameter to mirror the image
    $webcam->close();
}
View on GitHub
GitHub Stars38
CategoryDevelopment
Updated2mo ago
Forks4

Languages

PHP

Security Score

95/100

Audited on Feb 1, 2026

No findings