PHPackages                             riponcoder/scratch-card - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. riponcoder/scratch-card

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

riponcoder/scratch-card
=======================

This is a virtual scratch card

05PHP

Since Sep 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ripon-coder/scratch-card)[ Packagist](https://packagist.org/packages/riponcoder/scratch-card)[ RSS](/packages/riponcoder-scratch-card/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Scratch Card Laravel Package
============================

[](#scratch-card-laravel-package)

[![Issues](https://camo.githubusercontent.com/87d9f1b345b09fa33c1ed941690e04ca41284fd55b91849d875386399cc0015d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f7269706f6e2d636f6465722f736372617463682d63617264)](https://github.com/ripon-coder/scratch-card/issues)[![Stars](https://camo.githubusercontent.com/9878014308c6647fc5f9108f98ae12e27ebd5f5826b88bf2ca12146e72aec07c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7269706f6e2d636f6465722f736372617463682d63617264)](https://github.com/ripon-coder/scratch-card/stargazers)

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

[](#installation)

```
composer require riponcoder/scratch-card
```

Migration
---------

[](#migration)

```
php artisan migrate
```

Facades
-------

[](#facades)

```
use Ripon\ScratchCard\ScratchCard;
OR
use ScratchCard;
```

Usage
-----

[](#usage)

### Scratch Card For Item Insert

[](#scratch-card-for-item-insert)

```
    ScratchCard::insertItem([
        "Laptop", // Item Name
        1, //status 1 mean Active and 0 Unactive
    ]);
```

### Scratch Card For Item Update

[](#scratch-card-for-item-update)

```
    ScratchCard::updateItem($id,[
        "Laptop", // Item Name
        1, //status 1 mean Active and 0 Unactive
    ]);
```

### Scratch Card insert

[](#scratch-card-insert)

```
       ScratchCard::insert([
        "Ripon Shikder", //name
        "01730000000", //mobile
         1, //status 1 mean Active and 0 Unactive
       ]);
```

### Scratch Card Update

[](#scratch-card-update)

```
       ScratchCard::update($id,[
        "Ripon", //name
        "01730000000", //mobile
         1, //status 1 mean Active and 0 Unactive
       ]);
```

### Scratch Card Get

[](#scratch-card-get)

```
  ScratchCard::ScratchItemGet(30);
```

30 Mean Pagination Per page

### Scratch Card Find By Mobile

[](#scratch-card-find-by-mobile)

```
  ScratchCard::FindByMobile("01730000000");
```

### Scratch Card Find By Token

[](#scratch-card-find-by-token)

```
  ScratchCard::TokenbyFind("7tvUzM7uWHl8dLyf2zJWssXvTopMyOYe");
```

### Scratch Card Status Deactive

[](#scratch-card-status-deactive)

```
  ScratchCard::ID(1)->StatusDeactive();
```

### Scratch Card Status Active

[](#scratch-card-status-active)

```
  ScratchCard::ID(1)->StatusActive();
```

### When Scratch Card Gift Done

[](#when-scratch-card-gift-done)

```
  ScratchCard::ID(1)->giftDone();
```

If You Want To Change Scratch Card View Change
----------------------------------------------

[](#if-you-want-to-change-scratch-card-view-change)

```
  php artisan vendor:publish --tag=scratch-views
```

Scratch Card View URL will be
-----------------------------

[](#scratch-card-view-url-will-be)

```
  http://127.0.0.1:8000/scratch-card/7tvUzM7uWHl8dLyf2zJWssXvTopMyOYe
```

###  Health Score

14

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/57412391?v=4)[Ripon Shikder](/maintainers/ripon-coder)[@ripon-coder](https://github.com/ripon-coder)

---

Top Contributors

[![ripon-coder](https://avatars.githubusercontent.com/u/57412391?v=4)](https://github.com/ripon-coder "ripon-coder (10 commits)")

### Embed Badge

![Health badge](/badges/riponcoder-scratch-card/health.svg)

```
[![Health](https://phpackages.com/badges/riponcoder-scratch-card/health.svg)](https://phpackages.com/packages/riponcoder-scratch-card)
```

PHPackages © 2026

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