定制 ninjaportal/kickstart 二次开发

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

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

ninjaportal/kickstart

Composer 安装命令:

composer create-project ninjaportal/kickstart

包简介

NinjaPortal starter application template.

README 文档

README

Ninja Portal Logo

NinjaPortal Kickstart

Starter Laravel application template prepared for NinjaPortal.

Use this template to bootstrap a production-ready NinjaPortal application with the Portal package, Filament admin, and the Shadow theme already wired in.

Requirements

  • PHP ^8.2
  • Composer 2
  • A database (MySQL recommended for real projects)
  • Node.js + npm (only if you want to build frontend assets)

1. Create The Project

Install the template through Composer:

composer create-project ninjaportal/kickstart your-project-name
cd your-project-name

2. Install Dependencies

If you are working from the repository directly instead of create-project, install the locked dependencies:

composer install

Then install JS dependencies if needed:

npm install

3. Configure Environment

Copy the environment file and generate the application key:

cp .env.example .env
php artisan key:generate

Update database credentials in .env, then configure NinjaPortal / Apigee values (already included in .env.example):

APIGEE_PLATFORM=edge
APIGEE_ENDPOINT=https://api.enterprise.apigee.com/v1
APIGEE_ORGANIZATION=your-org
APIGEE_USERNAME=your-username
APIGEE_PASSWORD=your-password

APIGEE_MONETIZATION_ENABLED=false
APIGEE_MONETIZATION_PLATFORM=edge
APIGEE_MONETIZATION_ENDPOINT=https://api.enterprise.apigee.com/v1/mint

if using Apigee X:

APIGEE_DRIVER=apigeex
APIGEE_ENDPOINT=https://apigee.googleapis.com/v1
APIGEE_ORGANIZATION=your-org

4. Installations

4.1 Install NinjaPortal

Run the package installer:

php artisan portal:install

What this does:

  • publishes NinjaPortal config
  • publishes Spatie permission migrations
  • runs migrations
  • seeds baseline settings + RBAC permissions
  • adds App\Providers\NinjaPortalServiceProvider to your application bootstrap providers

Optional flags:

php artisan portal:install --force-provider-overwrite
php artisan portal:install --delete-default-users-migration

We recommend using the --delete-default-users-migration flag if you are installing NinjaPortal on a fresh laravel project, as it will delete the default users table migration.

4.2 Install Shadow theme

php artisan shadow:install

Shadow theme is shipped with pre-built assets.

4.3 Install Filament Admin

php artisan filament:install 

This will install Filament Admin and its dependencies.

5. (Optional) Seed Demo Data

php artisan portal:seed --demo

Useful seed options:

php artisan portal:seed --all
php artisan portal:seed --settings --rbac

Seeded Demo Accounts

After running php artisan portal:seed --demo, the following demo accounts are available:

Type Name Email Password Notes
Admin Portal Owner admin@ninjaportal.test password Assigned the super_admin role when RBAC is seeded
Admin Support Admin support.admin@ninjaportal.test password Assigned the super_admin role when RBAC is seeded
User Jade Summers jade.summers@ninjaportal.test password Active user
User Marco Diaz marco.diaz@ninjaportal.test password Active user
User Priya Nair priya.nair@ninjaportal.test password Pending user

6. Apigee Authentication Notes

Apigee Edge

Use the username/password env variables shown above.

Apigee X

Set:

APIGEE_PLATFORM=apigeex
APIGEE_ENDPOINT=https://apigee.googleapis.com/v1
APIGEE_MONETIZATION_PLATFORM=apigee_x
APIGEE_MONETIZATION_ENDPOINT=https://apigee.googleapis.com/v1

Then place a service account key file at:

storage/app/service_account_key.json

LaraApigee uses that file path for Apigee X authentication by default.

7. Run The Application

Backend:

php artisan serve

Assets (optional during local development):

npm run dev

Optional Next Step: API Package

If you want the prebuilt NinjaPortal REST API package as well:

composer require ninjaportal/portal-api

Then publish/configure its settings and generate API docs (Scribe) based on your project needs.

ninjaportal/kickstart 适用场景与选型建议

ninjaportal/kickstart 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 03 月 02 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「laravel」 「apigee」 「ninjaportal」 「developer-portal」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 ninjaportal/kickstart 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 ninjaportal/kickstart 我们能提供哪些服务?
定制开发 / 二次开发

基于 ninjaportal/kickstart 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-02