Download the PHP package imdhemy/repovel without Composer

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

repovel

Repovel is used to add an extra layer for services and abstract data access using repositories.

The Service Layer is a design pattern that will help you to abstract your logic when you need to use different front-end on your application, for your domain logic. Actually, you delegate the application logic to a common service (the service layer) and have only one class to maintain when your application grows or needs an update. This is also a good way to clean up your controllers, and make them more readable. [1]

The Repository Pattern has gained quite a bit of popularity since it was first introduced as a part of Domain-Driven Design in 2004. Essentially, it provides an abstraction of data, so that your application can work with a simple abstraction that has an interface approximating that of a collection. Meaning, it adds another layer between your application logic and your data source either your database or any external API. [2],[3]

Installation

Run the following command from you terminal:

Usage

Repovel extends the awesome artisan commands to add two new commands make:service and make:repository as follows:

Services

To create a service class, use the make:service Artisan CLI command:

If you want to create a Form Request class with the required service, add the option -r

This command creates two classes App\Http\Services\StoreBlogPost and App\Http\Requests\StoreBlogPostRequest

So how the created services are used? Within your controller method you can instantiate your service and return its handle() as a response

Instantiating a service class with a Form request is optional, you can discard the $request param:

You can access the Illuminate\Foundation\Http\FormRequest methods inside the service:

Repositories

To create a repository class, use the make:repository Artisan CLI command:

The created class is found in app\Http\Repositories, go and add your required methods to retrieve data.

N.B. I found that implementing Repository Criteria or forcing some repository methods like(all, get, find and etc ..) by an interface will limit the usage of the created repositories. It's up to you to use them.

Full Example

Configuration

The config file repovel.php allows you to change the default namespace for services and repositories. To publish the config files run the following Artisan CLI command

This copies [/imdhemy/repovel/src/config/repovel.php] To [/config/repovel.php] where you can edit the default configuration:

License

The contents of this repository is released under the MIT license.


All versions of repovel with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^6.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 imdhemy/repovel contains the following files

Loading the files please wait ....