PHPackages                             sinonjzh/laravel-l2d - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. sinonjzh/laravel-l2d

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

sinonjzh/laravel-l2d
====================

A live2d widget for laravel.

11JavaScript

Since Aug 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/SinonJZH/laravel-l2d)[ Packagist](https://packagist.org/packages/sinonjzh/laravel-l2d)[ RSS](/packages/sinonjzh-laravel-l2d/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

 laravel-l2d
=============

[](#-laravel-l2d-)

 A [live2d widget](https://github.com/stevenjoezhang/live2d-widget) for laravel.

 为Laravel定制的[live2d widget](https://github.com/stevenjoezhang/live2d-widget)。

安装
--

[](#安装)

1. 使用composer安装 ```
    $ composer require sinonjzh/laravel-l2d
    ```
2. 发布资源文件 ```
    $ php artisan vendor:publish --provider "SinonJZH\LaravelL2d\ServiceProvider"
    ```
3. 加载js和css
    `/resources/js/app.js````
    //……
    require('./laravel-l2d/live2d.min.js');
    require('./laravel-l2d/autoload.js');
    ```

    `/resources/sass/app.scss````
    @import 'laravel-l2d/waifu';
    ```

    然后使用终端运行 ```
    $ npm run watch-poll
    ```

配置
--

[](#配置)

1. （必须）修改live2d\_api路径
    `/resources/js/laravel-l2d/autoload.js````
    if (screen.width >= 768) {
        initWidget({
     	   waifuPath: window.location.origin + "/vendor/laravel-l2d/waifu-tips.json",
     	   apiPath: "",  //Add your API path here
        });
    }
    //……
    ```

    关于自己搭建api服务器以及模型添加请参阅[live2d-api](https://github.com/fghrsh/live2d_api)。
2. 修改对话
    只需在`/resources/js/laravel-l2d/autoload.js`以及`/public/vendor/laravel-l2d/waifu-tips.json`中修改即可。

用法
--

[](#用法)

安装完成后即可在站点显示live2d看板娘。

License
-------

[](#license)

GNU v3.0

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

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://avatars.githubusercontent.com/u/44700327?v=4)[SinonJZH](/maintainers/SinonJZH)[@SinonJZH](https://github.com/SinonJZH)

---

Top Contributors

[![SinonJZH](https://avatars.githubusercontent.com/u/44700327?v=4)](https://github.com/SinonJZH "SinonJZH (6 commits)")

### Embed Badge

![Health badge](/badges/sinonjzh-laravel-l2d/health.svg)

```
[![Health](https://phpackages.com/badges/sinonjzh-laravel-l2d/health.svg)](https://phpackages.com/packages/sinonjzh-laravel-l2d)
```

###  Alternatives

[xj/yii2-sitemap

yii2-sitemap

142.7k](/packages/xj-yii2-sitemap)

PHPackages © 2026

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