PHPackages                             pyaesoneaung/laravel-starter-kit - 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. pyaesoneaung/laravel-starter-kit

ActiveProject[Framework](/categories/framework)

pyaesoneaung/laravel-starter-kit
================================

Laravel 12 starter kit with built-in strict typing, enhanced code quality tools, and safety features.

v0.0.1(1y ago)011MITPHPPHP ^8.2CI passing

Since May 5Pushed 11mo ago1 watchersCompare

[ Source](https://github.com/PyaeSoneAungRgn/laravel-starter-kit)[ Packagist](https://packagist.org/packages/pyaesoneaung/laravel-starter-kit)[ RSS](/packages/pyaesoneaung-laravel-starter-kit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (14)Versions (2)Used By (0)

Laravel Starter Kit
===================

[](#laravel-starter-kit)

Laravel 12 starter kit with built-in strict typing, enhanced code quality tools, and safety features.

Installation
------------

[](#installation)

```
laravel new --using pyaesoneaung/laravel-starter-kit --git
```

Setup Git Hooks

```
npm install
```

Features
--------

[](#features)

### ✅ Strict Models

[](#-strict-models)

```
Model::shouldBeStrict();
```

This does three things:

1. Prevents lazy loading
2. It prevents silently discarding attributes.
3. It prevents accessing missing attributes.

---

### ✋ Prevent Destructive Commands

[](#-prevent-destructive-commands)

Preventing the execution of destructive commands in production environments.

```
DB::prohibitDestructiveCommands(app()->isProduction());
```

---

### ⚡️ Automatic Relation Loading

[](#️-automatic-relation-loading)

Laravel can automatically eager load the relationships you access.

```
Model::automaticallyEagerLoadRelationships();
```

---

### 🪝 Git Commit Hook

[](#-git-commit-hook)

Run duster lint for PHPStan, duster fix for refactor with Rector, and format with Laravel Pint before every commit.

#### Default Laravel Rector Rules

[](#default-laravel-rector-rules)

##### EloquentMagicMethodToQueryBuilderRector

[](#eloquentmagicmethodtoquerybuilderrector)

```
 use App\Models\User;

-$user = User::find(1);
+$user = User::query()->find(1);
```

##### EloquentWhereRelationTypeHintingParameterRector

[](#eloquentwhererelationtypehintingparameterrector)

```
-User::whereHas('posts', function ($query) {
+User::whereHas('posts', function (Builder $query) {
     $query->where('is_published', true);
 });

-$query->whereHas('posts', function ($query) {
+$query->whereHas('posts', function (Builder $query) {
     $query->where('is_published', true);
 });
```

##### EloquentWhereTypeHintClosureParameterRector

[](#eloquentwheretypehintclosureparameterrector)

```
 /** @var \Illuminate\Contracts\Database\Query\Builder $query */
-$query->where(function ($query) {
+$query->where(function (Builder $query) {
     $query->where('id', 1);
 });
```

##### ModelCastsPropertyToCastsMethodRector

[](#modelcastspropertytocastsmethodrector)

```
 use Illuminate\Database\Eloquent\Model;

 class Person extends Model
 {
-    protected $casts = [
-        'age' => 'integer',
-    ];
+    protected function casts(): array
+    {
+        return [
+            'age' => 'integer',
+        ];
+    }
 }
```

##### ScopeNamedClassMethodToScopeAttributedClassMethodRector

[](#scopenamedclassmethodtoscopeattributedclassmethodrector)

```
 class User extends Model
 {
-    public function scopeActive($query)
+    #[\Illuminate\Database\Eloquent\Attributes\Scope]
+    protected function active($query)
     {
         return $query->where('active', 1);
     }
 }
```

##### WhereToWhereLikeRector

[](#wheretowherelikerector)

```
-$query->where('name', 'like', 'Rector');
-$query->orWhere('name', 'like', 'Rector');
-$query->where('name', 'like binary', 'Rector');
+$query->whereLike('name', 'Rector');
+$query->orWhereLike('name', 'Rector');
+$query->whereLike('name', 'Rector', true);
```

---

### 😺 GitHub Actions

[](#-github-actions)

Automated workflows for continuous integration, running Laravel Pint and PHPStan on every push and pull request.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

373d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b4a938e91069afb632288ccdb87813e19c0d0fc86189f73daa33464e0d2a0367?d=identicon)[pyaesoneaung](/maintainers/pyaesoneaung)

---

Top Contributors

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

---

Tags

frameworklaravelstarter-kit

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/pyaesoneaung-laravel-starter-kit/health.svg)

```
[![Health](https://phpackages.com/badges/pyaesoneaung-laravel-starter-kit/health.svg)](https://phpackages.com/packages/pyaesoneaung-laravel-starter-kit)
```

###  Alternatives

[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3691.5k](/packages/codewithdennis-larament)[raugadh/fila-starter

Laravel Filament Starter.

614.9k](/packages/raugadh-fila-starter)

PHPackages © 2026

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