PHPackages                             ysj3188/website-settings - 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. ysj3188/website-settings

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

ysj3188/website-settings
========================

description...

25PHP

Since Sep 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/ysj3188/dact-admin-website-settings)[ Packagist](https://packagist.org/packages/ysj3188/website-settings)[ RSS](/packages/ysj3188-website-settings/feed)WikiDiscussions master Synced today

READMEChangelog (1)DependenciesVersions (1)Used By (0)

使用须知

进入项目目录

安装命令:

`composer require ysj3188/website-settings`

导入：

`php artisan admin:import Dcat\Admin\Extension\WebsiteSettings\WebsiteSettings `

或者在网站的扩展管理中进行管理

使用前进行数据库迁移，数据库迁移文件在database目录下的migrations里，建立settings表

需要在config/filesystems中添加别名为admin的disk,

```
'admin' => [
            'driver' => 'local',
            'root' => public_path('uploads'),
            'visibility' => 'public',
            'url' => env('APP_URL').'/uploads',
        ],

```

，修改`config.admin.upload.disk`为`admin`,

```
 'upload' => [

        // Disk in `config/filesystem.php`.
        //   'disk' => 'public',  原代码
        'disk' => 'admin',  //修改后

        // Image and file upload path under the disk above.
        'directory' => [
            'image' => 'images',
            'file'  => 'files',
        ],
    ],

```

网站logo是上传至admin存储中

最后：在 `app\Providers\AppService\Provider.php`文件的`register`方法中加入如下代码

```
         $name = \Illuminate\Support\Facades\DB::table('settings')->find(1)->name;
         config([
              'admin.logo' => ' &nbsp;' . $name,
              'admin.name'=>$name
         ]);

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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/3766caa9f030fe6000c194177426587955bba25892b70599aedec82e85edbd99?d=identicon)[ysj3188](/maintainers/ysj3188)

---

Top Contributors

[![ysj3188](https://avatars.githubusercontent.com/u/31100154?v=4)](https://github.com/ysj3188 "ysj3188 (4 commits)")[![fafaer-once](https://avatars.githubusercontent.com/u/69334648?v=4)](https://github.com/fafaer-once "fafaer-once (1 commits)")

### Embed Badge

![Health badge](/badges/ysj3188-website-settings/health.svg)

```
[![Health](https://phpackages.com/badges/ysj3188-website-settings/health.svg)](https://phpackages.com/packages/ysj3188-website-settings)
```

PHPackages © 2026

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