PHPackages                             larajs/core - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. larajs/core

ActiveLibrary[Framework](/categories/framework)

larajs/core
===========

2.2.0(3mo ago)215PHPPHP ^8.3

Since Feb 19Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/maingocthanhtan96/larajs-core)[ Packagist](https://packagist.org/packages/larajs/core)[ RSS](/packages/larajs-core/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (14)Versions (12)Used By (0)

LaraJS Core
===========

[](#larajs-core)

[![Latest Version](https://camo.githubusercontent.com/c9bf1df527bfacc98993ab36f2c87ff49bf7df5613d64b05d00d1876718270fa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6172616a732f636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larajs/core)[![PHP Version](https://camo.githubusercontent.com/7d4170795ef40919c942beb22137ac1bacbbb88adffb22e4123ee594eba20f0b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702f6c6172616a732f636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larajs/core)[![Total Downloads](https://camo.githubusercontent.com/1d5676308994d219ffeb4a3aef5fcd5b2fbead2ea0332fa0ab1558a18ed03479/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6172616a732f636f72652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/larajs/core)

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

Overview
--------

[](#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
------------

[](#installation)

You can install the package via composer:

```
composer require larajs/core
```

The package will automatically register its service provider.

Usage
-----

[](#usage)

### Service Provider

[](#service-provider)

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

### Available Artisan Commands

[](#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

[](#controllers)

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

### Helpers and Services

[](#helpers-and-services)

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

Contributing
------------

[](#contributing)

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

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance82

Actively maintained with recent releases

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~113 days

Recently: every ~273 days

Total

11

Last Release

97d ago

Major Versions

0.0.1 → 1.0.02023-02-19

1.0.6 → 2.0.02025-06-08

PHP version history (2 changes)0.0.1PHP ^8.1

2.0.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/84553090?v=4)[maingocthanhtan96](/maintainers/maingocthanhtan96)[@maingocthanhtan96](https://github.com/maingocthanhtan96)

---

Top Contributors

[![maingocthanhtan96](https://avatars.githubusercontent.com/u/84553090?v=4)](https://github.com/maingocthanhtan96 "maingocthanhtan96 (169 commits)")

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/larajs-core/health.svg)

```
[![Health](https://phpackages.com/badges/larajs-core/health.svg)](https://phpackages.com/packages/larajs-core)
```

###  Alternatives

[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M131](/packages/laravel-pulse)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M131](/packages/roots-acorn)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M150](/packages/laravel-mcp)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
