Download the PHP package gin0115/pixie-wpdb without Composer

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

Pixie WPDB Query Builder for WordPress

GitHub issues codecov Scrutinizer Code Quality GitHub issues [Open Source Love]()

An expressive, query builder for WordPRess it can also be referred as a Database Abstraction Layer. Pixie WPDB supports WPDB ONLY and it takes care of query sanitization, table prefixing and many other things with a unified API.

Pixie WPDB is an adaption of pixie originally written by usmanhalalit. Pixie is no longer under active development.

Features

Install

Perquisites

Using Composer

The easiest way to include Pixie in your project is to use composer.

Static Loader

If you are planning to just inlcude Pixie direct in your plugin, you can extract the src directory and add this to your functions.php or similar.

Each class is checked if already loaded, to avoid conflicts if used on multiple plugins.

Setup Connection

If you are only planning on having a single connection, you will only need to configure the connection once.

This would then give access to an instance of the QueryBuilder using this connection, via the alias defined Gin0115\DB

Generated & executed query :: "SELECT * FROM gin0115_foo WHERE column = 'red'; "

Connection Config

It is possible to configure the connection used by your instance of the query builder.

Values

Key Constant Value Description
prefix Connection:: PREFIX STRING Custom table prefix (will ignore WPDB prefix)
use_wpdb_prefix Connection:: USE_WPDB_PREFIX BOOL If true will use WPDB prefix and ignore custom prefix
clone_wpdb Connection:: CLONE_WPDB BOOL If true, will clone WPDB to not use reference to the instance (usually the $GLOBAL)
show_errors Connection:: SHOW_ERRORS BOOL If set to true will configure WPDB to show/hide errors

More details on the config

Connection Alias

When you create a connection:

MyAlias is the name for the class alias you want to use (like MyAlias::table(...) ), you can use whatever name (with Namespace also, MyNamespace\\MyClass ) you like or you may skip it if you don't need an alias. Alias gives you the ability to easily access the QueryBuilder class across your application.

Usage

Once a connection is created, the builder can be accessed either directly using the Alias Facade or by creating an instance.

Static Usage

The easiest way to use Pixie is to use the alias facade provided. This allows you to access a builder instance anywhere, much like WPDB.

None Static Usage

When not using an alias you can instantiate the QueryBuilder handler separately, helpful for Dependency Injection and Testing.

$connection here is optional, if not given it will always associate itself to the first connection, but it can be useful when you have multiple database connections.

Credits

This package began as a fork of Pixie originally written by usmanhalalit A few features have been inspired by the Pecee-pixie fork and continuation, especially the extended aggregate methods.

Changelog

© 2022 Glynn Quelch. Licensed under MIT license.


All versions of pixie-wpdb with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.0
usmanhalalit/viocon Version 1.0.*@dev
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 gin0115/pixie-wpdb contains the following files

Loading the files please wait ....