PHPackages                             brucelampson/laravel-spark-camera - 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. [Image &amp; Media](/categories/media)
4. /
5. brucelampson/laravel-spark-camera

ActivePackage[Image &amp; Media](/categories/media)

brucelampson/laravel-spark-camera
=================================

Profile photo camera support for Laravel Spark.

2.0.0(6y ago)117MITJavaScript

Since Apr 21Pushed 6y agoCompare

[ Source](https://github.com/BruceLampson/laravel-spark-camera)[ Packagist](https://packagist.org/packages/brucelampson/laravel-spark-camera)[ RSS](/packages/brucelampson-laravel-spark-camera/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (4)Used By (0)

Profile Photo Camera support for Laravel Spark
==============================================

[](#profile-photo-camera-support-for-laravel-spark)

This package adds support for capturing images from your computer or phone camera.

[Demo](https://cretu-eusebiu.wistia.com/medias/j4bh66b2ey)

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

[](#installation)

- Run `composer require eusebiu/laravel-spark-camera`
- Add `Eusebiu\LaravelSparkCamera\CameraServiceProvider::class` to your `providers` array in `config/app.php`
- Run `php artisan vendor:publish --provider="Eusebiu\LaravelSparkCamera\CameraServiceProvider" --tag=assets`
- Edit `resources/views/vendor/spark/settings/profile/update-profile-photo.blade.php`:

    - Add `@include('camera::camera-modal')` right before closing the last div.
    - Add the Camera button `Camera`.
    - It should look like [this](http://i.imgur.com/SBZR9Jv.png).
- Edit `resources/assets/js/spark-components/settings/profile/update-profile-photo.js`:

    - Add `var camera = require('./update-profile-photo-camera');` at the top.
    - Change the `mixins` option to `mixins: [base, camera]`.
- Run `npm install --save webcamjs`
- Run `npm run dev`
- Edit `resources/sass/app.scss` and add the following css

    ```
    #profile-photo-camera-preview,
    #profile-photo-camera-preview video {
        width: 100% !important;
        height: auto !important;
        min-width: 100px;
        min-height: 100px;
    }
    ```

> This package uses [WebcamJS](https://github.com/jhuckaby/webcamjs), so if you want to configure it, overide the `configureWebcamjs` method in your `update-profile-photo.js` file.

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~686 days

Total

3

Last Release

2352d ago

Major Versions

0.1.0 → 1.0.02016-10-29

1.0.0 → 2.0.02020-01-23

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4557356?v=4)[Bruce Lampson](/maintainers/BruceLampson)[@BruceLampson](https://github.com/BruceLampson)

---

Top Contributors

[![BruceLampson](https://avatars.githubusercontent.com/u/4557356?v=4)](https://github.com/BruceLampson "BruceLampson (5 commits)")[![cretueusebiu](https://avatars.githubusercontent.com/u/1517945?v=4)](https://github.com/cretueusebiu "cretueusebiu (3 commits)")

### Embed Badge

![Health badge](/badges/brucelampson-laravel-spark-camera/health.svg)

```
[![Health](https://phpackages.com/badges/brucelampson-laravel-spark-camera/health.svg)](https://phpackages.com/packages/brucelampson-laravel-spark-camera)
```

###  Alternatives

[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495240.6k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

135911.1k3](/packages/goat1000-svggraph)[gravatarphp/gravatar

Gravatar URL builder which is most commonly called as a Gravatar library

16653.6k2](/packages/gravatarphp-gravatar)[rsoury/wp-imgix

Rewrites WordPress image URLs to use ImgIX

167.2k](/packages/rsoury-wp-imgix)

PHPackages © 2026

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