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

ActiveLibrary[API Development](/categories/api)

michelmelo/rest-api
===================

015PHP

Since Jul 17Pushed 10mo agoCompare

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

READMEChangelogDependenciesVersions (1)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

17

—

LowBetter than 6% of packages

Maintenance40

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d756073dec37ac9abd3c7edd0cf00b94f2d2de0055531eba5472392b1fd4da2?d=identicon)[michelmelo](/maintainers/michelmelo)

---

Top Contributors

[![suraj-webkul](https://avatars.githubusercontent.com/u/121420732?v=4)](https://github.com/suraj-webkul "suraj-webkul (48 commits)")[![devansh-webkul](https://avatars.githubusercontent.com/u/68321766?v=4)](https://github.com/devansh-webkul "devansh-webkul (14 commits)")[![michelmelo](https://avatars.githubusercontent.com/u/159223?v=4)](https://github.com/michelmelo "michelmelo (6 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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