PHPackages                             scolib/simple-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. scolib/simple-repository

ActiveLibrary

scolib/simple-repository
========================

laravel simple repository

v2.0.0(6y ago)18MITPHPPHP ^7.2

Since Jul 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/ScoLib/simple-repository)[ Packagist](https://packagist.org/packages/scolib/simple-repository)[ Docs](https://github.com/scolib/simple-repository)[ RSS](/packages/scolib-simple-repository/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (4)Versions (4)Used By (0)

Laravel Simple Repository
=========================

[](#laravel-simple-repository)

code from

安装
--

[](#安装)

```
$ composer require scolib/simple-repository
```

使用
--

[](#使用)

```
namespace App\Repositories;

use Sco\Repository\BaseRepository;

class FooRepository extends BaseRepository
{
    protected $model = 'App\Models\User';
}
```

Model自动引入
---------

[](#model自动引入)

当Repository是 `App\Demos\Repositories\ItemRepository`，而Model是 `App\Demos\Models\Item` 时，Repository会自动进入该Model，而不必手动定义 `protected $model`

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

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 ~112 days

Total

3

Last Release

2255d ago

Major Versions

v1.1.0 → v2.0.02020-03-09

### Community

Maintainers

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

---

Tags

laravelScoLibsimple-repository

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[api-platform/laravel

API Platform support for Laravel

59126.4k6](/packages/api-platform-laravel)

PHPackages © 2026

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