PHPackages                             wilkques/repositories - 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. wilkques/repositories

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

wilkques/repositories
=====================

Laravel Repository

v2.0.0(3y ago)048MITPHPPHP ^7.4|^8.0

Since Mar 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/wilkques/repository)[ Packagist](https://packagist.org/packages/wilkques/repositories)[ RSS](/packages/wilkques-repositories/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (2)Versions (10)Used By (0)

Laravel Repository
==================

[](#laravel-repository)

[![Latest Stable Version](https://camo.githubusercontent.com/9dc67c9908aca5c495f24d4c2b6ffba576a16c722983b0ede22276aa11adff9f/68747470733a2f2f706f7365722e707567782e6f72672f77696c6b717565732f7265706f7369746f726965732f762f737461626c65)](https://packagist.org/packages/wilkques/repositories)[![License](https://camo.githubusercontent.com/7d62ca884364cfbb363eeba93e272cdec8a2fde72d316ba2ee4d98784da0a2b8/68747470733a2f2f706f7365722e707567782e6f72672f77696c6b717565732f7265706f7369746f726965732f6c6963656e7365)](https://packagist.org/packages/wilkques/repositories)

How to use
----------

[](#how-to-use)

`composer require wilkques/repositories`

example

```
namespace App\Repositories\UserRepository;

use App\User;
use Wilkques\Repositories\Repository;

class UserRepository extends Repository
{
    public function __construct(User $user)
    {
        parent::__construct($user);
    }

    public function whereName(string $name)
    {
        return $this->where("name", $name);
    }
}

// other class

use App\Repositories\UserRepository;
use App\User;

class UserController extends Controller
{
    protected $userRepository;

    public function __construct(UserRepository $userRepository)
    {
        $this->userRepository = $userRepository;
    }

    public function index(Request $request)
    {
        $user = User::where("name", $request->name)->get()->toArray();

        // same

        $user = $this->userRepository->where("name", $request->name)->get()->toArray();

        // same

        $user = $this->userRepository->whereName($request->name)->get()->toArray();
    }
}
```

Methods
-------

[](#methods)

1. `\Illuminate\Database\Query\Builder` ALL Methods
2. `\Illuminate\Database\Eloquent\Model` ALL Methods
3. `\Illuminate\Database\Eloquent\Builder` ALL Methods
4. `\Illuminate\Database\Eloquent\Collection` ALL Methods
5. `\Illuminate\Pagination\LengthAwarePaginator` ALL Methods
6. `\Illuminate\Support\Facades\DB` ALL Methods

MethodDescription`setForceMethods`force output`setCurrentPage`now page`setPrePage`prepage`setPageName`page name`enableQueryLog`same `\DB::enableQueryLog()``getQueryLog`same `\DB::getQueryLog()``getQueries`get all sql queries`getLastQuery`get last sql queries`throw`throws exception`isNull`same `is_null``isNotNull`same `!is_null``isNumeric`same `is_numeric``isNotNumeric`same `!is_numeric``isBool`same `is_bool``isNotBool`same `!is_bool``isObject`same `is_object``isNotObject`same `!is_object`Reference
---------

[](#reference)

1. [Laravel](https://laravel.com/docs)
2. [Laravel API DOCS](https://laravel.com/api/master/index.html)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Recently: every ~41 days

Total

9

Last Release

1357d ago

Major Versions

v0.1.1 → v1.0.02022-03-10

v1.1.2 → v2.0.02022-08-22

### Community

Maintainers

![](https://www.gravatar.com/avatar/906e907ec7e3dbe49f32aebd0f36488176d3736a65d38675753ba9a6a21017b6?d=identicon)[wilkques](/maintainers/wilkques)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/wilkques-repositories/health.svg)

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

###  Alternatives

[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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