Download the PHP package windwalker/compare without Composer
On this page you can find all versions of the php package windwalker/compare. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download windwalker/compare
More information about windwalker/compare
Files in windwalker/compare
Download windwalker/compare
More information about windwalker/compare
Files in windwalker/compare
Vendor windwalker
Package compare
Short Description Windwalker Compare package
License LGPL-2.0-or-later
Homepage https://github.com/ventoviro/windwalker-compare
Package compare
Short Description Windwalker Compare package
License LGPL-2.0-or-later
Homepage https://github.com/ventoviro/windwalker-compare
Please rate this library. Is it a good library?
Informations about the package compare
Windwalker Compare
What is Compare
Sometimes we will need a dynamic compare interface, but it hard to convert =
or <=
string to be php operator.
Compare object can help us create an object with compare logic between two values, and convert it to string, then we can use this string to build SQL or other use.
Installation via Composer
Add this to the require block in your composer.json
.
Basic Usage
We will get published >= 1
string. This is easy to integate into query string.
We will get this string: WHERE published >= 1 AND entry_id = 25 AND data <= '2014-03-02'
.
Do Compare
Available Compare Object
Name | Description | Operator |
---|---|---|
EqCompare | Equal | = |
NeqCompare | Not Equal | != |
GtCompare | Greater than | > |
GteCompare | Greater than or Equal | >= |
LtCompare | Less than | < |
LteCompare | Less than or Equal | <= |
InCompare | In an array or list | IN |
NinCompare | Not In an array or list | IN |
All versions of compare with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.3
The package windwalker/compare contains the following files
Loading the files please wait ....