Download the PHP package venar/select without Composer

On this page you can find all versions of the php package venar/select. 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 select

Select MySQL Class for PHP

PHP Class to build queries for MySQL. Allows you to build chains of conditions. The goal of this class is to encapsulate PHP's interactions with MySQL to reduce errors in writing queries and make creating stored procedures simple.

Requirements

This project requires PHP 5.5+ and MySQL

Documentation

Getting Started: Examples and Documentation

functions

->getInsertId()

Gets the Last Insert ID after you insert a row

Comparison List

->eq(field, value)

Compare the field to the value

->notEq(field, value)

Compare the field to the value and make sure it does not match

->eqConditional(field, value)

Compare the value to the value. If the value is an empty string, then this comparison will be dropped from the query silently

->eqNull(field)

Compare the field to NULL

->eqNotNull(field)

Compare the field to NOT NULL

->eqRequired(field, value)

Compare the field to the value. If the value is an empty string, then this will force an 1 = 0 in the query and cause the query to return no rows

->gt(field, value)

If the value greater than the field

->gte(field, value)

If the value greater than the field or equal to the field

->in(field, value)

Performs an IN clause, value can be String[], Subquery SQL, or another Select Class object

->notIn(field, value)

Inverse of in(). Performs an NOT IN clause, value can be String[], Subquery SQL, or another Select Class object

->like(field, value)

Wildcard search to see if the value is in the string. Defaults to adding left and right wildcard, only if % is not present in the value

->lt(field, value)

If the value less than the field

->lte(field, value)

If the value less than the field or equal to the field

Conjunction Groups

->startOr()

Begins an Or() condition grouping. All comparison after this are joined using OR rather than AND. All wrapped in parenthese

->endOr()

Ends a startOr() condition grouping

->startAnd()

Default Grouping, only needed if inside of an Or() grouping. Begins an And() condition grouping. All comparison after this are joined using OR rather than AND. All wrapped in parenthese

->endAnd()

Ends a startAnd() condition grouping. Cannot end the outer most grouping.

Sorting & Grouping

->group()

The GROUP BY value e.g. 'Date DESC' or 'LastName ASC, FirstName ASC'

->order(value)

The ORDER BY value e.g. 'LastName' or 'LastName, FirstName'

->offset(value)

The Integer to offset the results by

->limit(value)

The number of results to limit the return to


All versions of select with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.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 venar/select contains the following files

Loading the files please wait ....