定制 larajs/core 二次开发

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

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

larajs/core

最新稳定版本:2.2.0

Composer 安装命令:

composer require larajs/core

包简介

README 文档

README

Latest Version PHP Version Total Downloads

LaraJS Core is a PHP package providing core functionalities for Laravel applications, designed to streamline development and integrate seamlessly with JavaScript frontends.

Overview

This package includes:

  • Base controller (BaseLaraJSController)
  • Helper functions (Helper.php)
  • Middleware for language handling (LangMiddleware) and request/response logging (LogRequestResponse)
  • File service (FileService)
  • Traits for actions (Action.php) and user signatures (UserSignature.php)
  • Artisan commands for generating boilerplate code.

Installation

You can install the package via composer:

composer require larajs/core

The package will automatically register its service provider.

Usage

Service Provider

The package's service provider LaraJS\Core\LaraJSCoreServiceProvider is auto-discovered and registered.

Available Artisan Commands

This package provides several Artisan commands to help you generate common classes:

  • php artisan larajs:generate-action {name} - Generates a new action class.
  • php artisan larajs:generate-controller {name} - Generates a new controller class.
  • php artisan larajs:generate-repository {name} - Generates a new repository class.
  • php artisan larajs:setup - Sets up the necessary files and configurations for LaraJS Core.

Controllers

Extend LaraJS\Core\Controllers\BaseLaraJSController for your controllers to leverage base functionalities.

Helpers and Services

Utilize helpers and services provided in the LaraJS\Core\Helpers and LaraJS\Core\Services namespaces.

Contributing

Please see CONTRIBUTING for details. (You might want to create a CONTRIBUTING.md file)

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-06-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固