PHPackages                             gemy/mygift-api - 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. [API Development](/categories/api)
4. /
5. gemy/mygift-api

ActiveLibrary[API Development](/categories/api)

gemy/mygift-api
===============

using for mygift-api

1.0.0(2y ago)018MITPHPPHP &gt;=7.0

Since Oct 25Pushed 2y ago1 watchersCompare

[ Source](https://github.com/mohamedgammal55/mygift-api)[ Packagist](https://packagist.org/packages/gemy/mygift-api)[ RSS](/packages/gemy-mygift-api/feed)WikiDiscussions main Synced today

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

[![My gift logo](logo.svg)](logo.svg)

[![Build Status](https://github.com/laravel/framework/workflows/tests/badge.svg)](https://github.com/mohamedgammal55/mygift-api/actions)[![Total Downloads](https://camo.githubusercontent.com/2d084ba7a418bce2d326cb79e25ac07dc1d27a9b433d635ea846ce5811e0fefd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f67656d792f6d79676966742d617069)](https://packagist.org/packages/gemy/mygift-api)[![Latest Stable Version](https://camo.githubusercontent.com/fc027008c4aa479efca60a346da997e5fc20c8a49e2f203a4499e1447e4754ac/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f67656d792f6d79676966742d617069)](https://packagist.org/packages/gemy/mygift-api)[![License](https://camo.githubusercontent.com/9b6b14eaa9a72436e8079ce56463a806a8b7699b517e3dc600ed305a72b05d98/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f67656d792f6d79676966742d617069)](https://packagist.org/packages/gemy/mygift-api)

[![app link on google play](googleplay.svg)](#!)[![app link on apple store](applestore.svg)](#!)

My Gift
-------

[](#my-gift)

My Gift is an application to buy discount coupons

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

[](#installation)

You can install the package via composer:

```
composer require gemy/mygift-api
```

setup Database
--------------

[](#setup-database)

to setup my gift setting:

```
php artisan my-gift:setup
```

setup Slug
----------

[](#setup-slug)

to save your slug on my gift:

```
php artisan my-gift:slug
```

### The status codes

[](#the-status-codes)

These are the codes that will be returned to you in the event of success or failure:

   status   the meaning  200This code exists, use the data in “data”404This code is invalid406you must send the code407you must send the slug408This code has already been used409This code has expired#### This is the code when the status is 200

[](#this-is-the-code-when-the-status-is-200)

if "type" = "per" It means that it is a percentage, and when it is with "value" it means that it is just a value

[![my gift response](response.png)](response.png)

The code
--------

[](#the-code)

use it as a trait

```
use Gemy\MygiftApi\App\MyGiftApi;

class HomeController extends Controller
{
    use MyGiftApi;

    public function checkIfCodeExists()
    {
        $response = $this->checkIfCodeExists('code', 'slug');

        //put your code here
    }

    public function useCoupon()
    {
        $response = $this->useCoupon('code', 'slug','your order id','The discount value after the calculation');

        //put your code here
    }
}
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

983d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/65c0f0a413d33f9f65ac6b463fcde5c88b7111bbe25ca37687f5852f0f8a9fe0?d=identicon)[mohamed\_gamal\_55](/maintainers/mohamed_gamal_55)

---

Top Contributors

[![mohamedgammal55](https://avatars.githubusercontent.com/u/71434972?v=4)](https://github.com/mohamedgammal55 "mohamedgammal55 (67 commits)")

### Embed Badge

![Health badge](/badges/gemy-mygift-api/health.svg)

```
[![Health](https://phpackages.com/badges/gemy-mygift-api/health.svg)](https://phpackages.com/packages/gemy-mygift-api)
```

###  Alternatives

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M985](/packages/statamic-cms)[darkaonline/l5-swagger

OpenApi or Swagger integration to Laravel

3.0k37.6M134](/packages/darkaonline-l5-swagger)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k14.2M63](/packages/knuckleswtf-scribe)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

783.8k](/packages/scriptdevelop-whatsapp-manager)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3416.9k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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