PHPackages                             skygdi/devicetoken - 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. skygdi/devicetoken

ActiveLibrary

skygdi/devicetoken
==================

021PHP

Since Dec 3Pushed 9y ago1 watchersCompare

[ Source](https://github.com/skygdi/DeviceToken)[ Packagist](https://packagist.org/packages/skygdi/devicetoken)[ RSS](/packages/skygdi-devicetoken/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

DeviceToken
===========

[](#devicetoken)

For some device like mobile or special needed , this is a simple solution:

\###Install

`composer require skygdi/devicetoken "dev-master"`

\###Add to config/app.php providers

`Skygdi\DeviceToken\DeviceTokenServiceProvider::class,`

\###Usage:

`curl --request POST 'http://127.0.0.1:8000/tapi/login' --data "email=yourdomain@gmail.com"  --data "password=123456"`

\###Success login result like that(All Json return , copy the token string):

`{"result":"success","token":"1_0c4cdb8a5af4d2df6cb5925473f71f2b"}`

\###With the token for coming every requests (the default test route as follow)

`curl --header 'cookies: 1_0c4cdb8a5af4d2df6cb5925473f71f2b' http://127.0.0.1:8000/tapi/get`

\###You could write your route like that:

```
Route::group(['prefix' => 'tapi', 'middleware' => 'Skygdi\DeviceToken\ApiTokenCheck'], function () {
	    Route::get('get', function () {
		    //echo "Current user Email:".Auth::user()->email."\n";
		});
	}
);
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7517d80fc139bcb8b3a98f1b1f4db151e007b032c50eeb4b4330efb4c659c54e?d=identicon)[skygdi](/maintainers/skygdi)

---

Top Contributors

[![skygdi](https://avatars.githubusercontent.com/u/20422201?v=4)](https://github.com/skygdi "skygdi (13 commits)")

### Embed Badge

![Health badge](/badges/skygdi-devicetoken/health.svg)

```
[![Health](https://phpackages.com/badges/skygdi-devicetoken/health.svg)](https://phpackages.com/packages/skygdi-devicetoken)
```

PHPackages © 2026

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