定制 jengo/base 二次开发

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

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

jengo/base

Composer 安装命令:

composer require jengo/base

包简介

Modern web development library for CodeIgniter 4 with Vite, modules, unified setups, and automated CLI installer.

README 文档

README

The core package for Jengo applications, providing essential utilities, installers, and structure for CodeIgniter 4 rapid development.

Features

  • Rapid Setup: Command-line installers for common stacks.
  • Frontend Integration: Seamless support for modern frontend tools like Vite.
  • Helpers & Utilities: Specialized helpers for Jengo's architecture.

Installers

Jengo Base includes several installers to jumpstart your development.

Vite Installer

Sets up a complete Vite environment with optional Tailwind CSS support.

php spark jengo:install vite

Blueprint Installer

Sets up the core UI architecture (Layouts, Partials, Home Page).

php spark jengo:install blueprint

The Guardian (Health Check)

A diagnostic tool that ensures your application is correctly configured and healthy.

php spark jengo:health

The Auditor (Security Check)

Audit your project for security misconfigurations and best practices.

php spark jengo:audit

The Observer (Log Streamer)

Stream your application logs in real-time with coloring and filtering.

php spark jengo:tail-log

System Integration Hub

Connect your application to external ecosystems (Auth, SPA, API) through a unified wizard.

php spark jengo:setup

Or run a specific integration directly:

php spark jengo:setup auth
php spark jengo:setup inertia
php spark jengo:setup api

Core Generators

Jengo provides several generators to maintain a consistent architecture.

php spark jengo:make-action     # Generate a single-action class
php spark jengo:make-event      # Generate an event class
php spark jengo:make-layout     # Generate a UI layout
php spark jengo:make-page       # Generate a UI page
php spark jengo:make-repo       # Generate a repository

The Vault (API Suite)

Provides a professional API foundation with JWT support and standardized JSON responses.

Once established, your application is equipped with a standard APIController and JWT authentication utilities.

Modern Features: Controller Attributes

Jengo leverages CI4's new Controller Attributes to provide a declarative developer experience.

  • #[API]: Apply this attribute to any class or method to automatically force JSON responses and wrap output in the standard Jengo structure.

🛠 Helpers & Utilities

Jengo Base provides several helper functions to simplify common tasks. Ensure the helper is loaded: helper('jengo').

UI Helpers

  • page(string $name, array $data = []): Renders a view from app/Views/pages/.
  • vite_tags(): Injects the necessary <script> and <link> tags for Vite entrypoints.

Event System

  • register_events(...$events): Registers one or more AbstractEvent classes.
  • trigger_event(string $event, ...$args): Triggers a Jengo-style event.

General Utilities

  • model_of(string $model): Returns a ModelFacade for fluent model interaction.
  • isProduction(), isDevelopment(), isTesting(): Environment check shorthands.
  • controller_url(string $controller, string $method, ...$args): Type-safe URL generation for controllers.

⚙ Setup

To register the Jengo helper in your application's Autoload.php:

php spark jengo:setup

Installation

Install the package via Composer:

composer require jengo/base

Usage

Register the package in your CodeIgniter 4 application and use the provided spark commands.

php spark list

Look for the jengo namespace to see available commands.

jengo/base 适用场景与选型建议

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

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

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

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

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

其他信息

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