PHPackages                             lsgapi/exception - 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. lsgapi/exception

ActiveLibrary

lsgapi/exception
================

抛出异常

02.4kPHP

Since Nov 17Pushed 3y agoCompare

[ Source](https://github.com/linsonggao/lsg)[ Packagist](https://packagist.org/packages/lsgapi/exception)[ RSS](/packages/lsgapi-exception/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (2)Used By (0)

lsg
===

[](#lsg)

config/app.php下新增

Lsg\\Exception\\PackageApiExceptionServiceProvider::class 'ApiException' =&gt; Lsg\\Exception\\ApiException::class

composer require lsgapi/exception php artisan vendor:publish

项目中使用

throw new \\ApiException(400);

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity26

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5419d39f64bd604aef849d12ead3abf2b21ae61b80f48215920a7e512e93b20?d=identicon)[linsonggao](/maintainers/linsonggao)

---

Top Contributors

[![rambolin666](https://avatars.githubusercontent.com/u/212234441?v=4)](https://github.com/rambolin666 "rambolin666 (11 commits)")

### Embed Badge

![Health badge](/badges/lsgapi-exception/health.svg)

```
[![Health](https://phpackages.com/badges/lsgapi-exception/health.svg)](https://phpackages.com/packages/lsgapi-exception)
```

PHPackages © 2026

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