PHPackages                             schepotin/laravel-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. schepotin/laravel-api

AbandonedArchivedLibrary[API Development](/categories/api)

schepotin/laravel-api
=====================

Laravel API

v5.7.0(7y ago)67543[1 PRs](https://github.com/Shchepotin/laravel-api/pulls)MITVuePHP &gt;=7.0

Since Jul 29Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Shchepotin/laravel-api)[ Packagist](https://packagist.org/packages/schepotin/laravel-api)[ RSS](/packages/schepotin-laravel-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (10)Dependencies (3)Versions (26)Used By (0)

[![Build Status](https://camo.githubusercontent.com/acdf72238ff3a32961a5e6a8e0d39671b4a6b884176637eee7c0e598fa6c1e89/68747470733a2f2f7472617669732d63692e6f72672f5368636865706f74696e2f6c61726176656c2d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Shchepotin/laravel-api)

Laravel API
===========

[](#laravel-api)

Install
-------

[](#install)

Install package:

```
composer require schepotin/laravel-api
```

Run command:

```
php artisan laravel-api:publish --api
```

Run migrations:

```
php artisan migrate
```

Boilerplate for Vue
-------------------

[](#boilerplate-for-vue)

```
php artisan laravel-api:publish --vue
```

```
npm install
```

```
npm run dev
```

Eslint
------

[](#eslint)

```
npm run eslint
```

API
---

[](#api)

### Register:

[](#register)

request:

```
fetch('/api/v1/register', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
  },
  body: "name=John&email=johndoe@gmail.com&password=qwerty&password_confirmation=qwerty",
})
.then((response) => response.json())
.then((data) => {
  console.log(data);
});
```

response:

```
{
  "status": 1,
  "token": "yQZKTMgpB9wmX3seCH1XKrHyq62YQXijvnoAkFsHXmNcuv5SRhiTuWqbdsIP"
}
```

### Login:

[](#login)

request:

```
fetch('/api/v1/login', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
  },
  body: "email=johndoe@gmail.com&password=123456",
})
.then((response) => response.json())
.then((data) => {
  console.log(data);
});
```

response:

```
{
  "status": 1,
  "token": "yQZKTMgpB9wmX3seCH1XKrHyq62YQXijvnoAkFsHXmNcuv5SRhiTuWqbdsIP"
}
```

### Password reset:

[](#password-reset)

request:

```
fetch('/api/v1/password/email', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
  },
  body: "email=johndoe@gmail.com",
})
.then((response) => response.json())
.then((data) => {
  console.log(data);
});
```

response:

```
{
  "status": 1,
  "data": {
    "message": "passwords.sent"
  }
}
```

request:

```
fetch('/api/v1/reset/password', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
  },
  body: "email=johndoe@gmail.com&password=qwerty&password_confirmation=qwerty&token=2b8db1c9655ed1dcf1752867b652774e48e890e2709daa992f271df5d787a8ce",
})
.then((response) => response.json())
.then((data) => {
  console.log(data);
});
```

response:

```
{
  "status": 1,
  "data": {
    "message": "passwords.reset"
  }
}
```

### Get current logged user

[](#get-current-logged-user)

request:

```
fetch('/api/v1/user/current', {
  method: 'GET',
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    Authorization: 'Bearer yQZKTMgpB9wmX3seCH1XKrHyq62YQXijvnoAkFsHXmNcuv5SRhiTuWqbdsIP',
  },
})
.then((response) => response.json())
.then((data) => {
  console.log(data);
});
```

response:

```
{
  "status": 1,
  "data": {
    "id": 1,
    "name": "John",
    "email": "johndoe@gmail.com",
    "created_at": "2017-09-23 12:26:44",
    "updated_at": "2017-09-23 12:26:44"
  }
}
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 70.6% 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 ~18 days

Recently: every ~40 days

Total

24

Last Release

2831d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6001723?v=4)[Vladyslav Shchepotin](/maintainers/Shchepotin)[@Shchepotin](https://github.com/Shchepotin)

---

Top Contributors

[![Shchepotin](https://avatars.githubusercontent.com/u/6001723?v=4)](https://github.com/Shchepotin "Shchepotin (24 commits)")[![STonkoshkur](https://avatars.githubusercontent.com/u/6708783?v=4)](https://github.com/STonkoshkur "STonkoshkur (5 commits)")[![nulpatrol](https://avatars.githubusercontent.com/u/1830389?v=4)](https://github.com/nulpatrol "nulpatrol (3 commits)")[![alonat](https://avatars.githubusercontent.com/u/22292953?v=4)](https://github.com/alonat "alonat (1 commits)")[![demisGE](https://avatars.githubusercontent.com/u/20204579?v=4)](https://github.com/demisGE "demisGE (1 commits)")

---

Tags

apiboilerplatelaravelvueapilaravelboilerplatevue

### Embed Badge

![Health badge](/badges/schepotin-laravel-api/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M169](/packages/laravel-ai)[laravel/surveyor

Static analysis tool for Laravel applications.

8690.3k12](/packages/laravel-surveyor)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

806.6M188](/packages/saloonphp-laravel-plugin)[ovac/idoc

Generate beautiful API documentation from your Laravel application

185482.1k2](/packages/ovac-idoc)[zidbih/laravel-deadlock

Make temporary Laravel workarounds expire and fail CI when ignored.

984.0k](/packages/zidbih-laravel-deadlock)

PHPackages © 2026

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