Download the PHP package juvo/bricks-custom-query without Composer

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

God damn easy Bricks Builder Custom Queries

You are a developer and want to add custom queries to the bricks builder? This package is for you. From now on you can add your own logic and functionality to loops. Ever wanted to iterate your custom database, external APIs or WordPress Data Structures in a highly complex loop? Here you go.

Feature overview:

Installation

To install the package you can use composer. Run the following command in your terminal:

You should initiate the registry as early as possible. The best place to do this is in your plugin's main file or the functions.php of your theme.

Usage

To register a simple query you can use the following code snippet. The first parameter is the query name, the second parameter is the query label, the third parameter is the callback that returns a callback.

Query Types

There is an optional fourth parameter that allows you to set the type of the query. If you query something other than a post please change the type accordingly. Supported types are set up as a PHP Enum. The default type is Query_Type::Post.

Choose Query_Type::Other if you are not working with native wordpress data types. A more in detail guide for "Other" queries can be found in this guide

Query Callback

For native wordpress data types the callback must return valid query arguments. For custom data types you need to return the actual data. For the later the return value will not be processed further.

Query Configuration

You can configure a couple of query configurations using setter function. Full documentation for these can be found here: https://github.com/JUVOJustin/bricks-custom-query/wiki/Query-Configs

Additional Controls

You can add additional controls to your query. The full list of controls can be found here: https://academy.bricksbuilder.io/topic/controls/ You don´t need to set the tab.


All versions of bricks-custom-query with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.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 juvo/bricks-custom-query contains the following files

Loading the files please wait ....