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(1mo ago)29PHPPHP ^8.3

Since Feb 19Pushed 1mo ago1 watchersCompare

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

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

46

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity8

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

52d 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://www.gravatar.com/avatar/83e1381defb1092ae2eb229f0bedfed4a14eb4dcdc50a7556152b435749be23b?d=identicon)[maingocthanhtan96](/maintainers/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.5k25.9M107](/packages/laravel-cashier)[livewire/livewire

A front-end framework for Laravel.

23.5k75.5M1.8k](/packages/livewire-livewire)[laravel/pulse

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

1.7k12.1M99](/packages/laravel-pulse)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[laravel/scout

Laravel Scout provides a driver based solution to searching your Eloquent models.

1.7k49.4M479](/packages/laravel-scout)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.5k10.6M274](/packages/laravel-boost)

PHPackages © 2026

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