定制 dcplibrary/papiaccount 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dcplibrary/papiaccount

最新稳定版本:v1.7.0

Composer 安装命令:

composer require dcplibrary/papiaccount

包简介

Laravel package for PAPIAccount

README 文档

README

Lint Code Base Code Quality Semantic-Release StyleCI Latest Stable Version License

A Laravel package for PAPIAccount functionality.

Installation

You can install the package via composer:

composer require dcplibrary/papiaccount

IMPORTANT

The included views require a Flux UI Pro License. However, you can remove the requirement for livewire/flux from composer.json and edit the views to use Tailwind CSS or any other UI framework.

Configuration

Add Middleware to bootstrap/app.php

    ->withMiddleware(function (Middleware $middleware): void {
        $middleware->alias([
            'access.secret' => Dcplibrary\PAPIAccount\App\Http\Middleware\AccessSecret::class,
        ]);
        $middleware->trustProxies(
            at:'*',
            headers: Request::HEADER_X_FORWARDED_FOR |
            Request::HEADER_X_FORWARDED_HOST |
            Request::HEADER_X_FORWARDED_PORT |
            Request::HEADER_X_FORWARDED_PROTO
        );
    })

Publish the configuration file:

php artisan vendor:publish --tag="papiaccount-config"

This will publish the configuration file to config/papiaccount.php.

Usage

Basic Usage

use Dcplibrary\PAPIAccount\PAPIAccount;

$instance = new PAPIAccount();
echo $instance->name(); // PAPIAccount
echo $instance->version(); // 1.0.0

Using the Facade

use Dcplibrary\PAPIAccount\Facades\PAPIAccount;

PAPIAccount::name(); // PAPIAccount
PAPIAccount::version(); // 1.0.0

Service Provider Registration

The service provider is automatically registered. The package provides:

  • Routes at /papiaccount
  • Views under the papiaccount namespace
  • Configuration merging
  • Database migrations

Testing

Run the tests with:

composer test

Code Quality

Run code formatting:

composer format

Run static analysis:

composer analyse

Contributing

Please see CONTRIBUTING.md for details.

Security

If you discover any security-related issues, please email blashbrook@dcplibrary.org instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.

Credits

About DC Public Library

This package is developed and maintained by the DC Public Library development team.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-25