Download the PHP package calderawp/caldera-forms-query without Composer

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

Build Status

This library provides for developer-friendly ways to query for or delete Caldera Forms entry data.

Why?

Install

composer require calderawp/caldera-forms-query

Requires

Status

Basic Queries

Paginated Queries

The selectByFieldValue feature method defaults to limiting queries to 25. You can set the page and limit with the 4th & 5th arguments.

Constructing Other Queries

The feature container provides helper methods that allow for simple queries like those listed above. It also exposes the underlying query generators.

You can access any of the generators using the getQueries() method. For example:

is() Helper Method

This is a more complete example showing a selection of entry values where the field with the slug primary_email is [email protected] and the field with the slug of first_name is Mike. It is also using the is() method to add WHERE statements, as well as the addPagination() method to query for the second page of results with 50 results per page.

in() Helper Method

This example shows selection of all entry values where the entry ID is in an array of entry IDs.

Query Generators

All query generators extend the \calderawp\CalderaFormsQuery\QueryBuilder class and impairment \calderawp\CalderaFormsQuery\CreatesSqlQueries.

Query generators are responsible for creating SQL queries. They do not perform sequel queries.

Select Query Generators

Select query generators extend \calderawp\CalderaFormsQuery\Select\SelectQueryBuilder and impliment \calderawp\CalderaFormsQuery\Select\DoesSelectQuery and \calderawp\CalderaFormsQuery\Select\DoesSelectQueryByEntryId.

Useful Methods of SelectQueryBuilders

Using Query Generators To Perform SQL Queries

SELECT

The getQueries() method of the FeatureContainer returns a calderawp\CalderaFormsQuery\Features\Queries instance. This provides us with a select method when passed a SelectQueryBuilder returns an array of stdClass object of results.

You can also access the generated SQL as a string.

DELETE

The Queries class also has a delete method we can pass a DeleteQueryBuilder to perform a DELETE query against the database.

Development

Install

Requires git and Composer

Local Development Environment

A local development environment is included, and provided. It is used for integration tests. Requires Composer, Docker and Docker Compose.

You should know have WordPress at http://localhost:8888/

Testing

Install

Follow the steps above to create local development environment, then you can use the commands listed in the next section.

Use

Run these commands from the plugin's root directory.

WordPress and Caldera Forms Dependency

For now, this library is dependent on Caldera Forms and WordPress (for \WPDB.) This will change, possibly with breaking changes, when caldera-interop is integrated with this tool.

Stuff.

Copyright 2018 CalderaWP LLC. License: GPL v2 or later.


All versions of caldera-forms-query with dependencies

PHP Build Version
Package Version
No informations.
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 calderawp/caldera-forms-query contains the following files

Loading the files please wait ....