PHPackages                             yukiyaxxxx/laravel-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. [Database &amp; ORM](/categories/database)
4. /
5. yukiyaxxxx/laravel-simple-repository

ActiveLibrary[Database &amp; ORM](/categories/database)

yukiyaxxxx/laravel-simple-repository
====================================

Laravel simple eloquent repository.

034[1 issues](https://github.com/yukiyaxxxx/laravel-simple-repository/issues)PHP

Since Aug 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yukiyaxxxx/laravel-simple-repository)[ Packagist](https://packagist.org/packages/yukiyaxxxx/laravel-simple-repository)[ RSS](/packages/yukiyaxxxx-laravel-simple-repository/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

laravel-simple-repository
=========================

[](#laravel-simple-repository)

Simple repository library on Laravel.

Instllation
-----------

[](#instllation)

### Composer install

[](#composer-install)

```
composer require "yukiyaxxxx/laravel-simple-repository:dev-master"

```

### Example repository

[](#example-repository)

```
php artisan vendor:publish
Yukiyaxxxx\LaravelSimpleRepository\Providers\RepositoryServiceProvider

```

### Create repository

[](#create-repository)

```
class ExampleRepository extends BaseRepository implements RepositoryInterface
{
    public function model()
    {
        return new ExampleModel(); // where('email', '=', $email)->get();
    }

```

Use.

```
$exampleRepository = new ExampleRepository();

$models =  $exampleRepository->getByEmail($email);

```

### API

[](#api)

Extends eloquent methods.

- find($id, $columns = \['\*'\])
- findMany($ids, $columns = \['\*'\])
- findOrFail($id, $columns = \['\*'\])
- findOrNew($id, $columns = \['\*'\])
- firstOrNew(array $attributes, array $values = \[\])
- firstOrCreate(array $attributes, array $values = \[\])
- updateOrCreate(array $attributes, array $values = \[\])
- firstOrFail($columns = \['\*'\])
- firstOr($columns = \['\*'\], $callback = null)
- all($columns = \['\*'\])
- update($model, array $attributes = \[\], array $options = \[\])
- save($model, array $options = \[\])
- saveOrFail($model, array $options = \[\])
- destroy($ids){
- delete($model)
- forceDelete($model)
- create(array $attributes = \[\])
- forceCreate(array $attributes)
- new()

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity29

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.

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravel

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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