PHPackages                             mrshanebarron/signature-pad - 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. mrshanebarron/signature-pad

ActiveLibrary

mrshanebarron/signature-pad
===========================

Signature pad component for Laravel - supports Livewire and Vue

v1.0.3(4mo ago)010MITVuePHP ^8.1

Since Dec 14Pushed 4mo agoCompare

[ Source](https://github.com/mrshanebarron/signature-pad)[ Packagist](https://packagist.org/packages/mrshanebarron/signature-pad)[ RSS](/packages/mrshanebarron-signature-pad/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (5)Used By (0)

Signature Pad
=============

[](#signature-pad)

Digital signature capture component for Laravel applications. Supports touch and mouse input, customizable colors and stroke width, and exports to PNG data URL. Works with Livewire and Vue 3.

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

[](#installation)

```
composer require mrshanebarron/signature-pad
```

Livewire Usage
--------------

[](#livewire-usage)

### Basic Usage

[](#basic-usage)

```

```

### Custom Dimensions

[](#custom-dimensions)

```

```

### Custom Colors

[](#custom-colors)

```

```

### Custom Stroke Width

[](#custom-stroke-width)

```

```

### With Wire Model

[](#with-wire-model)

```

```

### Livewire Props

[](#livewire-props)

PropTypeDefaultDescription`signature`string`null`Base64 PNG data URL (modelable)`width`int`400`Canvas width in pixels`height`int`200`Canvas height in pixels`strokeColor`string`'#000000'`Pen color (hex)`strokeWidth`int`2`Line thickness in pixels`backgroundColor`string`'#ffffff'`Canvas background color### Methods

[](#methods)

The component exposes a `clear()` method:

```

Clear
```

Vue 3 Usage
-----------

[](#vue-3-usage)

### Setup

[](#setup)

```
import { SbSignaturePad } from './vendor/sb-signature-pad';
app.component('SbSignaturePad', SbSignaturePad);
```

### Basic Usage

[](#basic-usage-1)

```

import { ref } from 'vue';
const signature = ref(null);

```

### Custom Configuration

[](#custom-configuration)

```

  Clear
  Save

import { ref } from 'vue';
const signature = ref(null);

function save() {
  console.log('Signature:', signature.value); // Base64 PNG
}

```

### Vue Props

[](#vue-props)

PropTypeDefaultDescription`modelValue`String`null`v-model binding for signature data`width`Number`400`Canvas width`height`Number`200`Canvas height`strokeColor`String`'#000000'`Pen color`strokeWidth`Number`2`Line thickness`backgroundColor`String`'#ffffff'`Background color### Methods

[](#methods-1)

MethodDescription`clear()`Clear the signature canvas`toDataURL()`Get the signature as base64 PNG`isEmpty()`Check if canvas is empty### Events

[](#events)

EventPayloadDescription`update:modelValue`stringEmitted when signature changes`signature-saved`stringEmitted with data URL when saved`signature-cleared`-Emitted when canvas is clearedSaving Signatures
-----------------

[](#saving-signatures)

The signature is exported as a base64-encoded PNG data URL:

```
// In your Livewire component
public string $signature = '';

public function save()
{
    // $this->signature contains: data:image/png;base64,...

    // Save to file
    $data = base64_decode(str_replace('data:image/png;base64,', '', $this->signature));
    file_put_contents(storage_path('signatures/sig.png'), $data);

    // Or save to database
    $user->update(['signature' => $this->signature]);
}
```

Touch Support
-------------

[](#touch-support)

The component supports:

- Mouse drawing (desktop)
- Touch drawing (tablets, phones)
- Prevents scrolling while signing

Styling
-------

[](#styling)

The signature pad includes:

- Rounded border
- Shadow on focus
- Clear button styling
- Responsive container

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

[](#requirements)

- PHP 8.1+
- Laravel 10, 11, or 12
- Tailwind CSS 3.x

License
-------

[](#license)

MIT License

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance74

Regular maintenance activity

Popularity5

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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 ~0 days

Total

4

Last Release

148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a38dc9b4ccc180ee3e9df8879f8747ea9dbf36812c6546827fe504fa8993eb8?d=identicon)[mrshanebarron](/maintainers/mrshanebarron)

### Embed Badge

![Health badge](/badges/mrshanebarron-signature-pad/health.svg)

```
[![Health](https://phpackages.com/badges/mrshanebarron-signature-pad/health.svg)](https://phpackages.com/packages/mrshanebarron-signature-pad)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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