PHPackages                             pteal79/rapid-camera-capture - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. pteal79/rapid-camera-capture

ActiveNativephp-plugin[File &amp; Storage](/categories/file-storage)

pteal79/rapid-camera-capture
============================

A NativePHP plugin for persistent camera capture — take multiple photos in one session, saved to mobile\_public disk with UUID filenames.

1.0.2(1mo ago)06MITSwiftPHP ^8.2

Since Apr 14Pushed 3mo agoCompare

[ Source](https://github.com/pteal79/rapid-camera-capture)[ Packagist](https://packagist.org/packages/pteal79/rapid-camera-capture)[ RSS](/packages/pteal79-rapid-camera-capture/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (1)Dependencies (4)Versions (4)Used By (0)

RapidCameraCapture Plugin for NativePHP Mobile
==============================================

[](#rapidcameracapture-plugin-for-nativephp-mobile)

A NativePHP plugin that opens a persistent camera interface on iOS. The user can tap **Take Photo** repeatedly to capture multiple images — the camera stays open between shots. Each captured image is saved to the `mobile_public` disk with a UUID filename and an `ImageCaptured` event is dispatched to PHP after every capture.

**Platform:** iOS only.

Installation
------------

[](#installation)

```
composer require pteal79/rapid-camera-capture

# Publish the plugins provider (first time only)
php artisan vendor:publish --tag=nativephp-plugins-provider

# Register the plugin
php artisan native:plugin:register pteal79/rapid-camera-capture

# Verify
php artisan native:plugin:list
```

Requirements
------------

[](#requirements)

### iOS Permissions

[](#ios-permissions)

The following is added to your app's `Info.plist` automatically via the plugin manifest:

KeyDescription`NSCameraUsageDescription`Required for camera accessUsage
-----

[](#usage)

### Open the Camera

[](#open-the-camera)

```
use PTeal79\RapidCameraCapture\Facades\RapidCameraCapture;

RapidCameraCapture::open();
```

The camera interface is presented full-screen. The user can tap **Take Photo** as many times as they like. Each photo is saved immediately. The camera closes when the user taps **Close**.

### Handle Captured Images (Livewire)

[](#handle-captured-images-livewire)

```
use Native\Mobile\Attributes\OnNative;
use PTeal79\RapidCameraCapture\Events\ImageCaptured;

#[OnNative(ImageCaptured::class)]
public function onImageCaptured(string $filename, string $path): void
{
    // $filename — UUID-based, e.g. "550e8400-e29b-41d4-a716-446655440000.jpg"
    // $path     — absolute path on the device filesystem

    // Serve the image via the mobile_public disk:
    $url = Storage::disk('mobile_public')->url($filename);
    $this->photos[] = $url;
}
```

Events
------

[](#events)

### `ImageCaptured`

[](#imagecaptured)

Fired after every successful photo capture, before the camera is ready for the next shot.

PropertyTypeDescription`filename`stringUUID filename, e.g. `{uuid}.jpg``path`stringAbsolute path to the file on deviceJavaScript Usage
----------------

[](#javascript-usage)

```
import { RapidCameraCapture, Events } from '@pteal79/rapid-camera-capture';
import { On, Off } from '#nativephp';

// Open the camera
await RapidCameraCapture.open();

// React to each captured image
const handler = ({ filename, path }) => {
    console.log('New photo:', filename);
};

On(Events.ImageCaptured, handler);

// Clean up
Off(Events.ImageCaptured, handler);
```

How It Works
------------

[](#how-it-works)

The plugin uses `AVCaptureSession` with `AVCapturePhotoOutput` and `AVCaptureVideoPreviewLayer` for a live, persistent camera preview. Unlike `UIImagePickerController`, the session stays active so the user can capture an unlimited number of photos in one session. Each JPEG is written to the app's `mobile_public` storage directory with a UUID filename, then `LaravelBridge.shared.send` dispatches the `ImageCaptured` event back to PHP.

License
-------

[](#license)

MIT

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~35 days

Total

3

Last Release

31d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/167c450c5528b16682698e73dc0a8cb5b537244340d1696502cfc3f3f92ebdd1?d=identicon)[pteal79](/maintainers/pteal79)

---

Top Contributors

[![Elite-Cleaning](https://avatars.githubusercontent.com/u/102381701?v=4)](https://github.com/Elite-Cleaning "Elite-Cleaning (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/pteal79-rapid-camera-capture/health.svg)

```
[![Health](https://phpackages.com/badges/pteal79-rapid-camera-capture/health.svg)](https://phpackages.com/packages/pteal79-rapid-camera-capture)
```

###  Alternatives

[olivierbon/craft-squeeze

Zip one or multiple craft assets on the fly for frontend user to download.

137.5k](/packages/olivierbon-craft-squeeze)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
