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 ago5 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 2d 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 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

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

2784d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ff51d3dc43a261238ed4bb633fd610314902afc189815c8b228052071e590ca6?d=identicon)[Shchepotin](/maintainers/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

[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[mpociot/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application

3.5k3.1M12](/packages/mpociot-laravel-apidoc-generator)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[specialtactics/l5-api

Dependencies for the Laravel API Boilerplate package

3672.8k2](/packages/specialtactics-l5-api)[okami101/laravel-admin

Admin panel generator for Laravel 8 and based on Vuetify Admin, a separate SPA admin framework running on top of REST APIs.

382.1k](/packages/okami101-laravel-admin)

PHPackages © 2026

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