Download the PHP package threeletters/supersql without Composer

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

SuperSQL

SuperSQL GitHub license Docs GitHub stars GitHub forks

A light, efficient and powerful php sql database framework. Allows you to quickly and securely develop anything using SQL databases.

Purpose

  1. To provide a very fast and efficient way to use SQL databases.
  2. To provide an easy way to use SQL databases safely.

Main Features

  1. Very small - 27.4KB one file (Unminified, dist/SuperSQL.php. Minified version: 12.4KB)
    • You can also choose whether you want an optional helper class.
  2. Simple and easy - Very easy to learn. SuperSQL was designed to be easy and simple, to the point that a noob can use it.
    • Straight forward syntax is db->select("table");
    • String syntax is standardised. Its allways '[operator1][op2][op3...]column[alias][type]'=>value
  3. Compatability - Supports all major SQL databases
    • Uses the PDO API for widespread support
  4. Efficiency - This module was built with speed and efficiency in mind.
    • Internal optimizations to make sure there is little overhead as possible
    • Dynamic SQLResponse class so you only fetch a row when you use it ($response[0] will only fetch the first row)
  5. Complexity - This module allows you to make all kinds of complex queries.
    • Multi-table queries to execute queries on multiple tables at once
    • Multi-value queries to execute queries with multiple values
    • Templates to pass sets of data in as a group
    • Type casting and aliases
    • DISTINCT, GROUP, LIMIT/OFFSET, INSERT [INTO], and more supported
    • Raw input available
  6. Security - This module prevents SQL injections, so hackers bye bye!
    • Uses PDO's prepare/bindParam/execute system with types
  7. Availability & Integration - This module is FREE. Licensed under the MIT license.
    • Use it as you wish! Only remember to give credit.
    • Also available on composer

Usage

You may either

  1. Use the built file (/dist/SuperSQL.php - preferred)
  2. Use the library (Autoload all in SuperSQL/, we also provide a simple loader)
  3. Use the composer package (composer require threeletters/supersql)

Build

To build this library, you need NodeJS. Then execute builder.js

node builder.js

It will build to /dist/SuperSQL*.php

Documentation

Full documentation is here: https://threeletters.github.io/SuperSQL

supersql.tk

FAQ

What is a SQLResponse?

SQLResponse is the object returned from a query. It implements the ArrayAccess and Iterator interfaces, and so can be accessed and iterated through like an array. When you do access a row or iterate through, a function is called and fetches the row from the database, and caches it. If all rows are fetched, then the connection is deleted as it does not have to be used anymore.

Whats the difference between this and Medoo?

While on the most basic level, SuperSQL and Medoo are the same, they are quite different.

How fast is superSQL compared to Medoo?

speed

Whats the difference between this an SlickInject?

SuperSQL uses the same concepts and design as SlickInject. However, SuperSQL has more complex features.

Why use PDO instead of Mysqli?

PDO is much more versatile than mysqli. Main reason is because it supports so many different databases while mysqli only supports one.

How did you make the documentation?

The nice documentation was created using Slate - Check it out.

Special thanks

Contributing

Contributing is open. If you want to contribute, make a pull request. Please use the PEAR format.

NOTE: please do not do [] for array. Please use array() instead. This is for backwards compatability.

License


All versions of supersql with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4
ext-pdo Version *
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 threeletters/supersql contains the following files

Loading the files please wait ....