承接 larajs/core 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

larajs/core

最新稳定版本:2.1.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.

统计信息

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

GitHub 信息

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

其他信息

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