Download the PHP package shamaseen/laravel-repositories without Composer

On this page you can find all versions of the php package shamaseen/laravel-repositories. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-repositories

Laravel-Repositories

Build Status Scrutinizer Code Quality Code Intelligence Status

A Laravel Repository generator with the best practice and tools already set and ready to be used.

What this package do?

  1. Commands to generate files, including repository files and others.
  2. Enforcing single responsibility principle
  3. Automatic CRUD out-of-the-box, whenever you generate a repository it will be CRUD-ready.
  4. Automatic query searching - (when the frontend send search GET param)
  5. Automatic query sorting - (when the frontend send order GET param)
  6. Automatic query filtration

Introduction

This package aim to provide auto file generation and base classes for the repository design pattern on Laravel.

Repository pattern forces you to have repository files in mediate between controllers and models, acting like a container where data access logic and business logic are stored.

What is wrong with the MVC pattern?

MVC Violate the single responsibility principle in SOLID principles, where controller methods are responsible for the business logic and returning responses to the front-end users in the same time, making it impossible to re-use these methods or to independently testing the business logic in them.

How repository design pattern works in this package?

After a request is being sent to the Laravel application, it follows these steps:

  1. The route catch the request and redirect it to its method in the controller
  2. The controller then validate the request with the correct request file.
  3. If the validations passed, the controller then check the policy authorization if available.
  4. If it passed the controller then call the repository to retrieve the required data.
  5. The repository implement the business logic and call the model to retrieve the required data from the database accordingly.
  6. The repository process that data (if needed) and return the final result to the controller
  7. The controller passes that data to the resource file to format the data as needed.
  8. The controller finally return the response back to the user.

Quick Usage

Run:

This will generate the following files:

  1. Test - (the Model file)
  2. TestController
  3. TestRepository
  4. TestRequest
  5. TestResource
  6. TestPolicy
  7. TestTest

Read the full document on ReadTheDoc.

LICENSE

MIT License

Versioning

We follow Semantic Versioning

Roadmap

  1. add the ability to disable caching from the config.

All versions of laravel-repositories with dependencies

PHP Build Version
Package Version
Requires php Version ^8
shamaseen/laravel-files-generator Version ^0.5
laravel/framework Version >5.7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shamaseen/laravel-repositories contains the following files

Loading the files please wait ....