PHPackages                             krayin/rest-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. krayin/rest-api

ActiveLibrary[API Development](/categories/api)

krayin/rest-api
===============

v2.1.1(8mo ago)723.7k↓42.3%19[144 issues](https://github.com/krayin/rest-api/issues)[1 PRs](https://github.com/krayin/rest-api/pulls)MITPHP

Since Jul 9Pushed 8mo agoCompare

[ Source](https://github.com/krayin/rest-api)[ Packagist](https://packagist.org/packages/krayin/rest-api)[ RSS](/packages/krayin-rest-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (0)

Krayin REST API
===============

[](#krayin-rest-api)

Krayin REST API is a medium to use the features of the core Krayin System. By using Krayin REST API, you can integrate your application to serve the default content of Krayin.

1. Requirements
---------------

[](#1-requirements)

- **Krayin**: v2.0.0

2. Installation
---------------

[](#2-installation)

### To install Krayin REST API from your console

[](#to-install-krayin-rest-api-from-your-console)

#### For the latest version of rest api

[](#for-the-latest-version-of-rest-api)

```
composer require krayin/rest-api
```

### Add the following options to your .env file

[](#add-the-following-options-to-your-env-file)

```
SANCTUM_STATEFUL_DOMAINS="${APP_URL}"
```

```
L5_SWAGGER_UI_PERSIST_AUTHORIZATION=true
```

### To configure the REST API with L5-Swagger documentation, run the following command

[](#to-configure-the-rest-api-with-l5-swagger-documentation-run-the-following-command)

```
php artisan krayin-rest-api:install
```

After executing the above command, you will see the API endpoint displayed in the shell.

### Alternatively, you can check the API documentation by visiting the following URL in your browser

[](#alternatively-you-can-check-the-api-documentation-by-visiting-the-following-url-in-your-browser)

```
http://localhost/public/api/admin/documentation
```

- You can check the [L5-Swagger](https://github.com/DarkaOnLine/L5-Swagger) guidelines too regarding the configuration the API documentation.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.2% 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 ~84 days

Recently: every ~105 days

Total

6

Last Release

259d ago

Major Versions

v1.0.0 → v2.0.02024-09-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/680982d0f4253ee1f7df370dc28852fe08dd6aab0cfae16f45d6ea026fdfbd02?d=identicon)[devansh.bawari419@webkul.com](/maintainers/devansh.bawari419@webkul.com)

---

Top Contributors

[![suraj-webkul](https://avatars.githubusercontent.com/u/121420732?v=4)](https://github.com/suraj-webkul "suraj-webkul (70 commits)")[![devansh-webkul](https://avatars.githubusercontent.com/u/68321766?v=4)](https://github.com/devansh-webkul "devansh-webkul (19 commits)")[![VikassWebkul214254](https://avatars.githubusercontent.com/u/107629725?v=4)](https://github.com/VikassWebkul214254 "VikassWebkul214254 (4 commits)")[![willph](https://avatars.githubusercontent.com/u/17226802?v=4)](https://github.com/willph "willph (1 commits)")[![stoffelio](https://avatars.githubusercontent.com/u/65236157?v=4)](https://github.com/stoffelio "stoffelio (1 commits)")[![jitendra-webkul](https://avatars.githubusercontent.com/u/39991107?v=4)](https://github.com/jitendra-webkul "jitendra-webkul (1 commits)")[![ramirors](https://avatars.githubusercontent.com/u/259668?v=4)](https://github.com/ramirors "ramirors (1 commits)")

### Embed Badge

![Health badge](/badges/krayin-rest-api/health.svg)

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

###  Alternatives

[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[badaso/core

The API &amp; platform builder, build your apps 10x faster even more, it's open source &amp; 100% free !

1.3k16.2k10](/packages/badaso-core)[bagisto/rest-api

28175.7k1](/packages/bagisto-rest-api)[joy/voyager-api

This Laravel/Voyager module adds REST Api with swagger support to Voyager.

204.7k3](/packages/joy-voyager-api)

PHPackages © 2026

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