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

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

wekode/repository
=================

Repository pattern setup

v0.5.0(4y ago)31641MITPHP

Since Oct 30Pushed 4y ago2 watchersCompare

[ Source](https://github.com/zakariaMogh/WekodeRepository)[ Packagist](https://packagist.org/packages/wekode/repository)[ RSS](/packages/wekode-repository/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)DependenciesVersions (6)Used By (0)

WekodeRepository
================

[](#wekoderepository)

This is a package to easely integrate a repository pattern with the needed service provider and all the necessary basic functions

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

[](#installation)

Require this package with composer. It is recommended to only require the package for development.

```
composer require wekode/repository
```

Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

### Laravel without auto-discovery:

[](#laravel-without-auto-discovery)

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Wekode\Repository\RepositorySetupServiceProvider,
```

#### Copy the package main files and setup your repository with the publish command:

[](#copy-the-package-main-files-and-setup-your-repository-with-the-publish-command)

```
php artisan vendor:publish --provider="Wekode\Repository\RepositorySetupServiceProvider"
```

Usage
-----

[](#usage)

This package comes with a command that creates the repositories and contracts, as well as the model if it does not exist.

```
php artisan make:repository Post
```

This command will create a repository file, a contract file and links the in the RespositoryServiceProvider. PS: the used model will be the first word of the Repository file name (ex : PostRepository will be linked to the model Post)

In case the model does not exist you can use this command

```
php artisan make:repository Post -m
```

This command will create the repository as well as execute a model creation command

```
php artisan make:model Post -a
```

Or if you do not want to create everything you can specify the option.

```
php artisan make:repository PostRepository -m -s -f -r
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Total

5

Last Release

1626d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10919e805a91a03d1f61c266f66f362633f2d43264721eda61014ea90d51ee0d?d=identicon)[zakariaMogh](/maintainers/zakariaMogh)

---

Top Contributors

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

---

Tags

laravelrepository

### Embed Badge

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

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

###  Alternatives

[cybercog/laravel-paket

Composer personal web interface. Manage Laravel dependencies without switching to command line!

1753.3k](/packages/cybercog-laravel-paket)[amin3520/anar

:description

272.3k](/packages/amin3520-anar)[mckenziearts/laravel-command

A simple Laravel package to provide artisan new commands

321.2k](/packages/mckenziearts-laravel-command)

PHPackages © 2026

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