Download the PHP package api-skeletons/doctrine-criteria without Composer

On this page you can find all versions of the php package api-skeletons/doctrine-criteria. 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 doctrine-criteria

Doctrine Criteria for Laminas

Build Status Coverage Gitter Patreon Total Downloads

This library builds a Criteria object from array parameters for use in filtering collections.

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

Once installed, add ApiSkeletons\Doctrine\Criteria to your list of modules inside config/application.config.php or config/modules.config.php.

laminas-component-installer

If you use laminas-component-installer, that plugin will install doctrine-criteria as a module for you.

Configuring the Module

Copy config/apiskeletons-doctrine-criteria.global.php.dist to config/autoload/apiskeletons-doctrine-criteria.global.php and edit the list of aliases for those you want enabled. By default all supported expressions are enabled.

Note AND and OR composite expressions are not supported yet.

Use

Filters

Filters are not simple key/value pairs. Filters are a key-less array of filter definitions. Each filter definition is an array and the array values vary for each filter type.

Each filter definition requires at a minimum a 'type'. A type references the configuration key such as 'eq', 'neq', 'contains'.

Each filter definition requires at a minimum a 'field'. This is the name of a field on the target entity.

Each filter definition may specify 'where' with values of either 'and', 'or'.

Format of Date Fields

When a date field is involved in a filter you may specify the format of the date using PHP date formatting options. The default date format is ISO 8601 Y-m-d\TH:i:sP If you have a date field which is just Y-m-d then add the format to the filter. For complete date format options see DateTime::createFromFormat

Included Filter Types

Equals:

Doctrine Collections does not currently support DateTime Equals comparisons. Any DateTime values sent through the equals filter will always return not equals. This is a shortcoming of doctrine/collections and not this module. Other comparison operators should work as expected.

Not Equals:

Less Than:

Less Than or Equals:

Greater Than:

Greater Than or Equals:

Contains:

Used to search inside of a string. Comlimentary with Starts With & Ends With, contains matches a string inside any part of the value.

Starts With:

Ends With:

Member Of:

Used to search inside an array field to match the matchValue to an array element.

In:

Note: Dates in the In and NotIn filters are not handled as dates. It is recommended you use other filters instead of these filters for date datatypes.

NotIn:

Note: Dates in the In and NotIn filters are not handled as dates. It is recommended you use other filters instead of these filters for date datatypes.

IsNull:

Used to determine if the field is null. There is no corresponding IsNotNull.

OrderBy

Field:


All versions of doctrine-criteria with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
doctrine/collections Version ^1.5
doctrine/doctrine-module Version ^1.2 || ^2.1
doctrine/doctrine-orm-module Version ^1.1 || ^2.1
laminas/laminas-modulemanager Version ^2.7.2
laminas/laminas-servicemanager Version ^2.7.6 || ^3.1.1
laminas/laminas-dependency-plugin Version ^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 api-skeletons/doctrine-criteria contains the following files

Loading the files please wait ....