Download the PHP package josanangel/service-repository-manager without Composer

On this page you can find all versions of the php package josanangel/service-repository-manager. 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 service-repository-manager

Laravel Service-Repository Generator

This package provides artisan commands to easily generate Services and Repositories, following the Service-Repository Pattern, which are not natively supported in Laravel. It helps developers maintain a clean and scalable code structure.

The code is designed so that any developer can build upon it, as it follows best practices and clean code principles.

Descripción de la imagen

Features

Requirements

Packagist Page

https://packagist.org/packages/josanangel/service-repository-manager

Installation

Install the package via Composer:

After install

Add the following service provider to your bootstrap/providers.php file:

``

Configuration

Example .env

`

Publish configuration file

`

Laravel module (Optional)

If your project follows a module structure such as https://nwidart.com/laravel-modules/v6/introduction You need to change SRM_MODULES to true and set a repository and service namespace which contains the {node_modules} keyword to replace in execution time when commands are called.

Then the commands will need --module= option to specify where file should be located.

Example .env using module:

Commands examples using module:

Execute composer dump-autoload after that:

Command parameter details

Command Parameter Type Description Required
php artisan make:repository name Argument Name of the repository you want to create. Yes
--module Option Specifies where the file(s) will be generated. No
--crud Option Specifies if the repository should include predefined CRUD functions. No
php artisan make:service name Argument Name of the service you want to create. Yes
--module Option Specifies where the file(s) will be generated. No
--repositories Option Indicates possible repositories to declare as injected dependencies in the main service file. No
--services Option Indicates possible services to declare as injected dependencies in the main service file. No
--repositories-crud Option Indicates repositories to declare as injected dependencies, including predefined CRUD functions. No


Examples

Create a UserRepository file

Content

``

Create a UserRepository file with CRUD methods

Content

``


Create a UserService file

Output

``


Create a UserService file with injected dependencies

UserService + [ injected ] AuthService

Output


UserService + [ injected ] AuthService + [ injected ] MapService + [ injected ] UserRepository

Output

UserService + [ injected ] UserRepository with CRUD methods

``

``


All versions of service-repository-manager with dependencies

PHP Build Version
Package Version
Requires nette/php-generator Version ^4.1
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 josanangel/service-repository-manager contains the following files

Loading the files please wait ....