Download the PHP
package rain1/condition-builder without Composer
On this page you can find all versions of the php package
rain1/condition-builder. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
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.
This package allows you to build query conditions for PDO-like interfaces.
This is NOT an ORM: it's a condition builder. Let see the example:
Usage
This will produce the following output:
Where is the magic?
Well, let suppose we want to write a function that filter rows in a MySQL table. Generally, if we don't want use some magic
framework or ORM, we have to do a lot of if conditions and we have to concatenate the query and push params values.
That's the ConditionBuilder internal job.
So you can easily build a lot of searches with a minimal function.
Of course, it is a simple condition helper, so your query can be more complex. You can use more than one
ConditionBuilder and you can append them to another.
Beaware
If the ConditionBuilder is empty (it means all filters are null), the result will be:
(TRUE), if the mode is ConditionBuilder::MODE_AND
(FALSE), if the mode is ConditionBuilder::MODE_OR
So be carefull especially if you use it with DELETE statements.
All versions of condition-builder with dependencies
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 rain1/condition-builder contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.