All Projects → mshamaseen → laravel-repository-pattern

mshamaseen / laravel-repository-pattern

Licence: MIT license
Files autogenerator for repositorry pattern

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-repository-pattern

baserepo
Base repository
Stars: ✭ 71 (+54.35%)
Mutual labels:  repository, repository-pattern
laravel-repository
Repository pattern implementation for Laravel
Stars: ✭ 49 (+6.52%)
Mutual labels:  repository, repository-pattern
laravository
Simplified Repository pattern implementation in Laravel
Stars: ✭ 14 (-69.57%)
Mutual labels:  repository, repository-pattern
Sinon
Test spies, stubs and mocks for JavaScript.
Stars: ✭ 8,828 (+19091.3%)
Mutual labels:  stub, stubs
Onion Architecture Asp.net Core
WhiteApp API solution template which is built on Onion Architecture with all essential feature using .NET 5!
Stars: ✭ 196 (+326.09%)
Mutual labels:  repository, repository-pattern
eloquent-repository
Repository pattern for Eloquent ORM with focus in cache.
Stars: ✭ 30 (-34.78%)
Mutual labels:  repository, repository-pattern
GraphQL.RepoDB
A set of extensions for working with HotChocolate GraphQL and Database access with micro-orms such as RepoDb (or Dapper). This extension pack provides access to key elements such as Selections/Projections, Sort arguments, & Paging arguments in a significantly simplified facade so this logic can be leveraged in the Serivces/Repositories that enca…
Stars: ✭ 25 (-45.65%)
Mutual labels:  repository, repository-pattern
BetterRepository
Better Enhanced Repository Pattern Implementation in .NET C#
Stars: ✭ 27 (-41.3%)
Mutual labels:  repository, repository-pattern
Model
Ruby persistence framework with entities and repositories
Stars: ✭ 399 (+767.39%)
Mutual labels:  repository, repository-pattern
Android Architecture Components
The template project that uses Android Architecture Components with Repository pattern. The simple app that uses awesome Fuel library instead of Retrofit for perfoming HTTP request. The app also persists data using the Room library and display data in RecyclerView.
Stars: ✭ 329 (+615.22%)
Mutual labels:  repository, repository-pattern
receptacle
minimalistic implementation of the repository pattern
Stars: ✭ 18 (-60.87%)
Mutual labels:  repository, repository-pattern
aem-stubs
Tool for providing sample data for AEM applications in a simple and flexible way. Stubbing server on AEM, no separate needed.
Stars: ✭ 40 (-13.04%)
Mutual labels:  stub, stubs
Hexagonal-architecture-ASP.NET-Core
App generator API solution template which is built on Hexagnonal Architecture with all essential feature using .NET Core
Stars: ✭ 57 (+23.91%)
Mutual labels:  repository, repository-pattern
aurblobs
Automatically create binary repositories from AUR packages
Stars: ✭ 14 (-69.57%)
Mutual labels:  repository
stub on web
Create stub urls to test external API integration
Stars: ✭ 54 (+17.39%)
Mutual labels:  stub
babel-plugin-rewire-exports
Babel plugin for stubbing [ES6, ES2015] module exports
Stars: ✭ 62 (+34.78%)
Mutual labels:  stub
Dapper.AmbientContext
Ambient context implementation for Dapper.NET
Stars: ✭ 31 (-32.61%)
Mutual labels:  repository
TableStorage.Abstractions.POCO
Builds on top of TableStorage.Abstractions (a repository wrapper over Azure Table Storage) such that objects to be serialized to and from Azure Table Storage are Plain Old CLR Objects (POCO) rather than TableEntities.
Stars: ✭ 20 (-56.52%)
Mutual labels:  repository
SlackBuilds
Slackware current slackbuilds (to build my repository)
Stars: ✭ 50 (+8.7%)
Mutual labels:  repository
APICorePayLots
Web API designed in Asp.NET Core 3.1, using Dapper and Entity Framework Core, Repository Pattern, Identity
Stars: ✭ 13 (-71.74%)
Mutual labels:  repository-pattern

Scrutinizer Code Quality Code Coverage Build Status Code Intelligence Status SymfonyInsight

IMPORTANT: We have created this repository to be a part of a specific workflow, it wasn't designed to be compatible with every project, but it became popular, so we decided to create a new better one with flexibility in mind, use this package instead.

Repository Generator

Autogeneration for repository pattern files, This package is aim to generate Contract (interface), Entity (model), Controller, Repository, Request validation and view files for specified module.

No Need to bind the interface to the repository, it will be auto-bind !

*Note: if you are using laravel, you should've at least version 5.7

Requirement

This package require the following dependencies: "illuminate/console": "^5.7", "illuminate/support": "^5.7"

Install

1- Require this package with composer using the following command:

composer require shamaseen/repository-generator

2- publish the package config file by running:

php artisan vendor:publish

and select repository-generator.

3- To enable validation messages to be delivereid, You need to move StartSession and ShareErrorsFromSession from $middlewareGroups in http karnel to $middleware.

Publish stubs

If you want to have a custom stubs rather than the default ones, you can change the path of the stubs folder in repository config, then run the following command:

php artisan vendor:publish

and select repository-stub, this will publish all the stub templates to the specified path on repository config. Feel free to edit stubs templates.

How to use

To generate repository files run the following command:

php artisan make:repository {Folder/Classname (singular)}

where Folder is optional.

To generate views and languages files just add --only-view option in the command.

To remove a repository files that has been already created, you can use Remover like the following:

php artisan remove:repository {Folder/Classname (singular)}

Examples

To generate repository files for product, run the following:

php artisan make:repository Products/Product

Note: You can use Product instead of Products/Product, this will not make new folder with the class.

Then generate views and languages files:

php artisan make:repository Products/Product --only-view

License

Repository-generator is a free software distributed under the terms of the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].