Download the PHP package wscore/scoresql without Composer

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

ScoreSql

A simple and easy SQL builder component.

The objective is to make the construction of SQL statements as easy and intuitive as possible; even for the complex SQL statements with sub-queries and complex OR conditions.

CURRENT STATUS: Beta.

i.e. the API is still under design.

license

MIT License

Basic Usage

construction

use class to get the query object, with optional parameter to select the database type.

select statement

Use methods to start where clause. for shorthand notation, use to start where clause as well. as such,

the resulting $sqlStatement will look like:

insert statement

or, this also works.

both cases will generate sql like:

update statement

or, this also works.

will generate update SQL like:

getting the bound values

use method to retrieve the bound values for prepared statement as follows.

If you start query with , use method to get the bound values.

as such,

Complex Conditions

or conditions

Use method to construct a OR in the where statement.

this will builds sql like:

Another example uses class to generate object. methods constructs another object to create parenthesis.

this will builds sql like:

having clause

to-be-written

Join Clause

To construct table join, use method to start join clause (which is a Join object).

join using

examples:

will produce,

join on

Meanwhile, the following PHP code,

, will produce the sql statement as shown below.

Sub Queries

Sub queries is implemented for several cases but are not tested against real databases, yet.

sub query in column

will generate the following sql.

sub query as table

sub query in update and insert

History

it was originally developed in WScore.Basic repository, then moved to WScore.DbAccess repository, and now it has its own repository, WScore.SqlBuilder.

Hopefully, this will be the last move...


All versions of scoresql 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 wscore/scoresql contains the following files

Loading the files please wait ....