Download the PHP package xabou/query without Composer

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

Abandoned

All good things come to an end. Thanks everyone for using this package :)

Laravel Query

Query is a package that provides queries objects for your Laravel application.

Installation

1: Require via composer

From the command line, run:

Alternatively, you can put the following in your composer.json file:

2: Register Service Provider

Open config/app.php and append providers array with:

Usage

Create A Query

With the package now installed, a new artisan command is available.

A 'Queries' directory will be created, if it doesn't already exist, within your app.

Declare Query Body

Within the body method you can declare your query:

Fetching Results

Body

This is where your query logic should be declared. This method returns an instance of Eloquent Database Builder or executed query.

Get

This is a wrapper for body method. When body returns an instance of Eloquent Database Builder this method delegates to Builder's get method.

1: Delegate to Eloquent Database Builder

You can call any method defined in Eloquent Database Builder by returning an instance of it, like above example.

2: Execute query

Within the body method you can also execute your query.

Then simply call body or get method on Query.

Note: In this case get method serves as an alias to body method. It won't delegate to Eloquent Database Builder.

3: Chain query

By returning the content of body you can continue chaining methods on Eloquent Database Builder.

Passing Arguments

You can pass as many arguments as you want through body or get methods.


All versions of query with dependencies

PHP Build Version
Package Version
Requires illuminate/database 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 xabou/query contains the following files

Loading the files please wait ....