Download the PHP package castroitalo/echoquery without Composer

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

EchoQuery

EchoQuery offers a streamlined, intuitive interface for developers. It simplifies complex SQL scripting, enhances readability, and accelerates development, making database interactions effortless and efficient for projects of any scale.

Basic Usage

To be able to use the EchoQuery package you need to install it with the following command:

To generate a string with your query using EchoQuery just use the methods available:

Features

Select and From Statement

The base of any SQL query is the SELECT and FROM statement, you can easily do it with echo query:

Let's create this SQL code into PHP using EchoQuery:

Let's make it more simple:

In this case, every array passed in select method, is a column and its alias, you can pass as much columns as you want:

Where statement

You create each WHERE condition at time, if you want to take the column_one data only the data that is greater than 10 you just do:

You can use ->where() method with:

JOINS

To use joins you need to call the JOIN method you want, and specify the table and the JOIN columns like in:

To use JOIN with sub query you just need to use the equivalent sub query JOIN method:

UNIONS

To use use UNIONS just use the ->union(string $unionQuery): Builder or ->unionAll(string $unionQuery): Builder with the subsequent query as the parameter:

GROUP BY

To use GROUP BY on aggregate functions simply use the ->groupBy(string ...$columns): Builder method, passing one or more columns to group:

ORDER BY

To use ORDER BY on columns simply use the ->orderBy(array ...$columns): Builder method, passing one or more columns with the respective ordering function.

HAVING

For using HAVING just use the ->having(string $having): Builder with one of the comparison operator:

Pagination

To create a pagination just use the ->pagination(int $limit, ?int $offset = null): Builder method, passing the limit and an optional offset for it:

Contributing

To contribute to the project make sure you have read CONTRIBUTING section.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CODE_OF_CONDUCT for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of echoquery with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
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 castroitalo/echoquery contains the following files

Loading the files please wait ....