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

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

scriemcodat/repository
======================

0.0057.1(1y ago)150MITPHP

Since Oct 3Pushed 1y ago2 watchersCompare

[ Source](https://github.com/ScriemCodat/laravelModule)[ Packagist](https://packagist.org/packages/scriemcodat/repository)[ RSS](/packages/scriemcodat-repository/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (27)Used By (0)

ScriemCodat Repository Module Generator
=======================================

[](#scriemcodat-repository-module-generator)

Description
-----------

[](#description)

This project includes a command-line tool that automates the creation of module directories and files, including services, repositories, interfaces, controllers, requests, models, and observers for Laravel applications.

Features
--------

[](#features)

- Generates necessary module structure for MVC components.
- Automatically creates folders and files for specified components.
- Implements repository and interface patterns.
- Automatically calls Laravel artisan commands to create factories and migrations.

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

[](#installation)

```
 composer require scriemcodat/repository
```

### Prerequisites

[](#prerequisites)

- PHP 8.0 or higher
- Composer
- Laravel Framework

Usage
-----

[](#usage)

1. **Run the command to create a module**:

    ```
    php artisan create:module {name}
    ```

    Replace `{name}` with the name of the model (e.g., `Company`).
2. **Command will create the following structure**:

    - `app/Modules/Company/Controller`
    - `app/Modules/Company/Interface`
    - `app/Modules/Company/Request`
    - `app/Modules/Company/Model`
    - `app/Modules/Company/Observer`
    - `app/Modules/Company/Repository`
    - `app/Modules/Company/Service`
3. **Auto-created files**:

    - Repository Interfaces
    - Repository Implementations
    - Factories
    - Migrations

```
public function doSomeStuff($productSearchService ProductSearchService)
{
$relationSearch = [
           'Facility' => [
               'relation' => [
                   'Company' => [
                       'fields' => ['name']
                   ],
               ],
               'fields' => ['name', 'fiscal_no', 'serial_no']
           ],
       ];

       $request->merge([
           'sortBy' => $this->sortBy ?? 'companies.id',
           'orderBy' => $this->sortDirection,
           'itemsPerPage' => config('app.itemsPerPage'),
           'page' => $this->getPage(),
           'status' => '1',
           'searchText' => $this->search,
           'searchIn' => ['name', 'fiscal_no', 'serial_no'],
           'relationSearch' => $relationSearch,

       ]);
   $this->amefsService->getAllFiltered($request);
}

## Running Tests
Tests are not yet defined in this project. Add your tests in the `tests` directory following Laravel's testing practices.

## Contributing
- Fork the repository.
- Create a new branch (`git checkout -b feature-branch`).
- Commit your changes (`git commit -m 'Add new feature'`).
- Push to the branch (`git push origin feature-branch`).
- Create a new Pull Request.

## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 78.9% 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 ~2 days

Total

26

Last Release

536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/55b0ae5776f3c8ad9b3dd879b395a5b3b278956b74068a77327e48fe002c7e50?d=identicon)[ionutrusen](/maintainers/ionutrusen)

---

Top Contributors

[![IonutRusen](https://avatars.githubusercontent.com/u/15908431?v=4)](https://github.com/IonutRusen "IonutRusen (45 commits)")[![bogdanpelea](https://avatars.githubusercontent.com/u/6028864?v=4)](https://github.com/bogdanpelea "bogdanpelea (9 commits)")[![alexbucur-dev](https://avatars.githubusercontent.com/u/65996369?v=4)](https://github.com/alexbucur-dev "alexbucur-dev (3 commits)")

### Embed Badge

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

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

PHPackages © 2026

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