Download the PHP package hwalde/pooq without Composer

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

POOQ - PHP Object Oriented Querying

POOQ generates PHP code from your database and lets you build type safe SQL queries through its fluent API.

Minimum PHP Version

WARNING: POOQ is currently in alpha stage! Expect API changes. Expect bugs! Do not use it in production!

Benefits

Requirements

Installation

I recommend to use Composer for installation:

Then use Composers autoload functionality to include POOQ into your projects:

Example usage

Querying

Initialize for querying

Before querying you need to initialize POOQ once.

Alternatively an existing PDO can be used:

Creating a select query

Outputs:

Alias names are optional. You can always use the models directly:

Outputs:

Mapping results to objects (so called Records)

Records can be optionally inserted/updated/refreshed/deleted in an ORM fashion

Converting Records to arrays

POOQ can handle queries with overlapping column names (from different tables). For example, if forum and thread would both have a column "title" then each value would still be mapped to the correct object.

Execute update queries

executes query:

Using subqueries in update:

executes query:

Custom WHERE-clauses

Not everything is implemented yet.. so being able to write custom where clauses is quite useful:

Code Generation

Contribution

Feel free to improve POOQ and send me your Pull Requests. Don't worry about code style or anything else. I can still adapt your changes if necessary.
I'm happy about every contribution.

Feel free to ask me anything!

Have a nice day!


All versions of pooq with dependencies

PHP Build Version
Package Version
Requires ext-pdo Version *
hwalde/database2code Version dev-master
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 hwalde/pooq contains the following files

Loading the files please wait ...