PHPackages                             zentnova/repository - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zentnova/repository

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zentnova/repository
===================

Laravel package for generating repositories

v1.1.1(1y ago)02931[1 PRs](https://github.com/Zentnova/zentnova-repository/pulls)MITPHPPHP &gt;=8.0

Since Mar 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/Zentnova/zentnova-repository)[ Packagist](https://packagist.org/packages/zentnova/repository)[ RSS](/packages/zentnova-repository/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (3)Versions (6)Used By (0)

สร้างโครงสร้าง Package
======================

[](#สร้างโครงสร้าง-package)

การติดตั้ง
----------

[](#การติดตั้ง)

`composer require zentnova/repository`

*สร้าง Repository คำสั่ง ดังนี้:*

```
php artisan make:repository [NameRepository]

```

### 🚀 ตัวอย่างคำสั่งที่ใช้งาน

[](#-ตัวอย่างคำสั่งที่ใช้งาน)

คำสั่งผลลัพธ์`php artisan make:repository UserRepository `**สร้าง Repository ปกติ**`php artisan make:repository UserRepository --empty `สร้าง Repository ว่าง (ไม่มีฟังก์ชัน) แต่มี Model`php artisan make:repository UserRepository --test --model=Admin`สร้าง Repository `UserRepository` ที่ใช้ Model `Admin` และมี Test`php artisan make:repository UserRepository --path=app/Services`สร้าง Repository ใน `app/Services/``php artisan make:repository UserRepository --test`สร้าง Repository พร้อม Pest Test### สรุป

[](#สรุป)

- ✅ เพิ่ม option --empty เพื่อสร้างไฟล์ Repository เปล่า
- ✅ ไฟล์เปล่ายังคงมี \_\_construct() และ Model
- ✅ สามารถกำหนด Model เองผ่าน --model=\[User\] (ชื่อ Modal จะขึ้นต้นด้วยตัวพิมพ์ใหญ่)
- ✅ ถ้าไม่กำหนด --model จะใช้ชื่อ Repository แล้วตัด "Repository" ออกเป็น Model

###  Health Score

31

—

LowBetter than 65% of packages

Maintenance46

Moderate activity, may be stable

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 95.7% 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 ~53 days

Total

3

Last Release

419d ago

### Community

Maintainers

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

---

Top Contributors

[![zunyru](https://avatars.githubusercontent.com/u/15644203?v=4)](https://github.com/zunyru "zunyru (22 commits)")[![Zentnova](https://avatars.githubusercontent.com/u/202819202?v=4)](https://github.com/Zentnova "Zentnova (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/zentnova-repository/health.svg)

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

###  Alternatives

[illuminate/pagination

The Illuminate Pagination package.

12234.6M1.1k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9350.2M311](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.8M410](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

224.7M146](/packages/illuminate-cookie)[forjedio/inertia-table

Backend-driven dynamic tables for Laravel + Inertia.js

272.0k](/packages/forjedio-inertia-table)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

265.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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