Download the PHP package interreposerv/inreser without Composer

On this page you can find all versions of the php package interreposerv/inreser. 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 inreser

InterRepoServ/InreSer Package

( Interface/Repository/Service )A Laravel package to streamline the process of creating Interfaces, Repositories, Services, and DTOs (Data Transfer Objects) in a Laravel project. This package enables you to follow clean coding practices by using the Repository Pattern and Service Layer Pattern, promoting a modular and testable application structure.

Installation

To install the package, run the following command:

composer require interreposerv/inreser


Usage

1. Creating an Interface

This command generates a new interface file under the app/Interfaces directory:

php artisan make:interface YourInterfaceName

Replace YourInterfaceName with the desired name of the interface. Interfaces define the structure of methods that implementing classes will use, providing consistency across your application.

2. Creating a Repository

This command creates a repository class in the app/Repositories directory, optionally implementing a specific interface:

php artisan make:repository YourRepositoryName

To make the repository implement an interface, use the --interface option:

php artisan make:repository YourRepositoryName --interface=YourInterfaceName

Replace YourRepositoryName with the repository name and YourInterfaceName with the interface name. Using repositories separates data logic from controllers, making it easier to swap data sources without modifying the interface.

3. Creating a Service

To create a service class, run:

php artisan make:service YourServiceName

This generates a new service class in the app/Services directory. Services encapsulate business logic and promote code reusability across different parts of your application.

4. Creating a DTO (Data Transfer Object)

Data Transfer Objects (DTOs) help manage data structures by ensuring data integrity and keeping code organized. To create a DTO, use:

php artisan make:dto YourDtoName

This command generates a DTO class in app/DTOs with predefined methods for transforming data to and from arrays.

5. Creating a Trait

Traits allow you to share methods across multiple classes without using inheritance. To generate a new trait in your Laravel project, run:

php artisan make:trait YourTraitName

This command creates a new trait in the app/Traits directory.

Additional Information

This package automatically registers these artisan commands, allowing for easy generation of Interfaces, Repositories, Services, and DTOs with a consistent structure across your Laravel application.


All versions of inreser with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0
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 interreposerv/inreser contains the following files

Loading the files please wait ....