Download the PHP package drewlabs/laravel-query without Composer

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

Laravel Query Bindings

The laravel query package provides drewlabs/query library bindings for laravel based projects. It uses Laravel eloquent API for database queries.

Usage

Providers

Components

The Query Language

This component offer a unified language for quering the database using SELECT, CREATE, UPDATE and DELETE methods. It heavily makes use of PHP dictionnary a.k.a arrays for various operations.

Creating instance of the DMLManager
Create API

The method takes in the attributes to insert into the database table as a row.

Note: In it complex form, the create method takes in the attributes to insert and a set of parameters:

The create method also takes in a 3rd parameter PHP Closure that can be executed after the create operation

Examples:

Update API

As the create method, the update method also provides overloaded method implementations for interacting with the database.

Delete API

Delete provides an interface for deleting items based on there id or a complex query.

Select API

select method of the DMLManger, provides a single method for querying rows in the database using either query filters.

Query filters

Filters provides a uniform interface to perform database queries.

CreateQueryFilters is a factory function which when called create a filters binding for laravel database library.

The query filters API

The query filters API provides a list of filters that can be used to perform database query using PHP key-value pair array (a.k.a dictionnary) to send query using the framework database API.

Example

Warning Entity objects/ Query models must implements the Drewlabs\Query\Contracts\Queryable interface for it to be compatible with query method calls.

The command API

The command API provides functions for sending query to database using the framework API under the hood.

Select Query Action

SelectQueryAction Proxy function provides a typo free function for creating database query action of type SELECT .

Update Query Action

UpdateQueryAction Proxy function provides a typo free function for creating database query action of type UPDATE .

Delete Query Action

Creates a DELETE type query action using user provided by function user.

Create Query Action

Creates a CREATE type query action using user provided by function user

Note To allow the creator function be more customizable, the function supports a second parameter that allow developpers to provides their own custom action handler.


All versions of laravel-query with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
illuminate/database Version ^9.0|^10.0|^11.0
illuminate/pagination Version ^9.0|^10.0|^11.0
drewlabs/contracts Version ^0.3
drewlabs/core-helpers Version ^0.3
drewlabs/support Version ^0.3
drewlabs/query Version ^0.3
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 drewlabs/laravel-query contains the following files

Loading the files please wait ....