{"id":15551295,"url":"https://github.com/vdechenaux/phpwebcam","last_synced_at":"2026-03-06T22:03:19.158Z","repository":{"id":62543863,"uuid":"217913323","full_name":"vdechenaux/PhpWebcam","owner":"vdechenaux","description":"This is a PHP library to capture webcam frames","archived":false,"fork":false,"pushed_at":"2019-11-06T18:45:41.000Z","size":5,"stargazers_count":37,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T04:55:18.713Z","etag":null,"topics":["ffi","opencv","php","webcam"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vdechenaux.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-27T20:35:36.000Z","updated_at":"2024-08-05T10:26:45.000Z","dependencies_parsed_at":"2022-11-02T21:30:28.247Z","dependency_job_id":null,"html_url":"https://github.com/vdechenaux/PhpWebcam","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdechenaux%2FPhpWebcam","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdechenaux%2FPhpWebcam/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdechenaux%2FPhpWebcam/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdechenaux%2FPhpWebcam/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdechenaux","download_url":"https://codeload.github.com/vdechenaux/PhpWebcam/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250506742,"owners_count":21441832,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ffi","opencv","php","webcam"],"created_at":"2024-10-02T14:04:00.488Z","updated_at":"2026-03-06T22:03:19.153Z","avatar_url":"https://github.com/vdechenaux.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Php Webcam\n\nThis is a PHP library to capture webcam frames.\n\n## Demo\n\nYou can see this library in action [here](https://github.com/vdechenaux/PhpWebcamMjpeg) with a simple Mjpeg stream implementation.\n\n## Requirements\n\n- PHP \u003e 7.4\n\n- Ext FFI\n\n- OpenCV (e.g. [`libopencv-videoio-dev`](https://packages.debian.org/trixie/libopencv-videoio-dev) on APT based systems, [`opencv-dev`](https://pkgs.alpinelinux.org/package/edge/community/x86_64/opencv-dev) on Alpine Linux)\n\n## Installation\n\n```sh\ncomposer require vdechenaux/webcam\n```\n\n## Usage\n\n```php\n\u003c?php\n\nrequire __DIR__ . '/vendor/autoload.php';\n\n$webcam = new \\VDX\\Webcam\\Webcam();\n\n// It can produce an other size if your webcam does not support the provided size\n$webcam-\u003esetDesiredSize(1280, 720);\n\nif ($webcam-\u003eopen()) {\n    $webcam-\u003esaveFrame('/tmp/test.jpg'/*, true*/); // It accepts a second parameter to mirror the image\n    $webcam-\u003eclose();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdechenaux%2Fphpwebcam","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdechenaux%2Fphpwebcam","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdechenaux%2Fphpwebcam/lists"}