PHPackages                             lsshu/site-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. lsshu/site-api

ActiveLibrary[API Development](/categories/api)

lsshu/site-api
==============

dev

v0.0.0(1y ago)08MITPHPPHP &gt;=7.4.0

Since Oct 16Pushed 1y ago1 watchersCompare

[ Source](https://github.com/lsshu/site-api)[ Packagist](https://packagist.org/packages/lsshu/site-api)[ Docs](https://github.com/lsshu/site-api)[ RSS](/packages/lsshu-site-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

About Site-Api
--------------

[](#about-site-api)

Laravel is a web application

Installation
------------

[](#installation)

> This package requires PHP 7.4+ and Laravel 8.5

First, install laravel 8.5, and make sure that the database connection settings are correct.

```
composer require lsshu/site-api
```

Then run these commands to publish assets and config：

```
php artisan vendor:publish --provider="Lsshu\Site\Api\ServiceProvider" --tag="config"
```

After run command you can find config file in `config/permisstion.php` `config/jwt.php` `config/site-api.php`, in this file you can change the install directory,db connection or table names.

Add the following configuration to file `config/filesystems.php`

```
 'disks' => [
        ·
        ·
        ·
        'root' => [
            'driver' => 'local',
            'root' => base_path('/')
        ]
    ]
```

migrate.

```
php artisan migrate
```

At last run following command to finish install permission.

```
php artisan site-api:seed-permission
```

Open `http://localhost/site-api/` in browser,Test whether the installation is successful 🏅.

Add the following configuration to file `config/auth.php`

```
'guards' => [
        ·
        ·
        ·
        'site-api' => [
            'driver' => 'jwt',
            'provider' => 'roots',
            'hash' => false,
        ],
    ],

'providers' => [
        ·
        ·
        ·
        'roots' => [
            'driver' => 'eloquent',
            'model' => Lsshu\Site\Api\Models\SystemUser::class,
        ],
    ],
```

Generate JWT encryption key

```
php artisan jwt:secret
```

Configurations
--------------

[](#configurations)

The file `config/site-api.php` contains an array of configurations, you can find the default configurations in there.

在 app/Http/Kernel.php 中找到 protected $routeMiddleware = \[···\]

```
protected $routeMiddleware = [
        .
        .
        .
        // 检查权限
        'check.permissions' => \Lsshu\Site\Api\Middleware\CheckPermissions::class
    ];
```

License
-------

[](#license)

The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance44

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

578d ago

### Community

Maintainers

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

---

Top Contributors

[![lsshu](https://avatars.githubusercontent.com/u/31087430?v=4)](https://github.com/lsshu "lsshu (18 commits)")

---

Tags

apilaravel

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lsshu-site-api/health.svg)

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

###  Alternatives

[rupadana/filament-api-service

A simple api service for supporting filamentphp

204103.8k7](/packages/rupadana-filament-api-service)

PHPackages © 2026

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