Download the PHP package lagumen/laravel-essentials without Composer

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

Laravel Essentials

This package provides utilities that can help you build a small to large scale projects.

Inspired by Laravel Query Filters

Build Status StyleCI

Features

This package allows you to create Repositories, Actions, Validations Class. It also features search, filtering and sorting functionality for your eloquent models.

Installation

Run the following command inside your project.

Optionally you can publish the config file by running the following command.

The config file contains the default namespace for Actions, Validations, Repositories and Filters. You can change the default namespace depending on your preference.

Usage

Repositories

You can create your Repository Class by running the following command.

This will create an Repository Class on App\Repositories by default.

To apply this, just go ahead and initialize your Repository Class to your Controller.

Validations

Of course, you need to validate your request before inserting or updating a data in your database.

You can make your validation class by running the following command.

This will create a Validation Class on App\Http\Validations by default.

To apply this, just go ahead and call the Validator Facade inside your controller.

No need to create multiple Request Class for a single controller.

Actions

You can create your Action Class by running the following command.

This will create an Action Class on App\Actions by default.

This will help you, make your controller to be managable and to look cleaner.

Filters

To allow your app to filter, search or sort data, just follow this guides..

First, let's create our Filter. You can do that by running the following command.

Notice that I used forward slash, this will create a class on App\Filters\User\Active.php.

Next, let's apply the CanPerformSearch trait on the model that you want to allow searching and set the columns that you want to allow to be searched, by calling $searchableColumns.

You also need to call filter scope on your model. You can do that by doing this.

Or, you can check what I did on the Repositories above. ;)

Now, you can perform filtering, searching and sorting by passing a request parameters to url:

Package that I used before that is worth mentioning

Laravel Fuse


All versions of laravel-essentials with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4
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 lagumen/laravel-essentials contains the following files

Loading the files please wait ....