Download the PHP package marwen-brini/bob-the-builder without Composer

On this page you can find all versions of the php package marwen-brini/bob-the-builder. 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 bob-the-builder

Bob Query Builder

A highly optimized, standalone PHP query builder with Laravel-like fluent syntax. Originally designed to enhance Quantum ORM's query building capabilities, Bob Query Builder is a fully independent package that can be used in ANY PHP project - from WordPress plugins to modern PHP frameworks, microservices, or standalone applications.

PHP Version Tests Coverage Documentation

Why Bob Query Builder?

While initially created to modernize Quantum ORM's query building capabilities, Bob Query Builder was designed from the ground up as a universal PHP query builder that can enhance ANY PHP application:

Features

Recent Updates (v3.0.0) 🎉

🗄️ Complete Migration System & Schema Builder

Bob v3.0 introduces a comprehensive database migration and schema management system:

See the Database Migrations & Schema Builder section for complete documentation.

Previous Updates (v2.2.2)

🎯 100% Code Coverage Achieved!

The test suite now has complete 100% code coverage across all components:

🛠️ Test Suite Improvements

Previous Updates (v2.2.1)

🛠️ Bug Fixes

Global Scope Field References in WHERE Clauses

Fixed an important issue with global scopes and field references:

Previous Updates (v2.1.1)

🛠️ Critical Bug Fixes

Table Prefix Handling in JOIN Clauses

Fixed all table prefix issues reported in production environments:

New Model Method: forceFill()

Added Laravel-compatible forceFill() method for bypassing mass assignment:

Previous Updates (v2.1.0)

🚀 New Features

Query Caching for exists()

Optimize repeated existence checks with the new opt-in caching mechanism:

Global Scopes in Relationships

Relationships now properly inherit global scopes:

Previous Updates (v2.0.7)

🔒 PHP 8.4+ Compatibility

Requirements

Installation

Install via Composer:

Quick Start

Configuration

Fetch Mode

By default, Bob Query Builder returns query results as associative arrays. You can configure this behavior:

Available fetch modes:

Basic Usage

Select Queries

Where Clauses

Joins

Aggregates

Insert

Update

Delete

Transactions

Raw Expressions

Pagination

Chunking

Process large datasets efficiently:

Cursor Streaming

For extremely large datasets (50k+ rows), use cursor for memory-efficient processing:

Query Debugging

Database Configuration

MySQL/MariaDB

PostgreSQL

SQLite

ORM & Model Features

Model Definition

Bob v2.0 introduces a full ORM layer with Laravel-inspired models:

Relationships

One-to-One (HasOne)

One-to-Many (HasMany)

Many-to-One (BelongsTo)

Many-to-Many (BelongsToMany)

Eager Loading

Prevent N+1 queries with eager loading:

Model Queries

Models provide an intuitive ActiveRecord interface:

Collections

Model queries return powerful Collection objects:

Database Migrations & Schema Builder (v3.0)

Schema Builder

Create and modify database tables with an expressive, fluent interface:

WordPress Schema Support

Bob includes specialized helpers for WordPress and WooCommerce table creation:

Migration System

Manage database schema changes with version-controlled migrations:

Running Migrations

Migration Features

Schema Inspector

Reverse engineer existing databases and generate migration files:

Column Types

Bob supports all standard database column types:

Indexes and Constraints

Advanced Features

Query Builder Cloning

Subqueries

Custom Grammars

Extend the grammar for custom SQL dialects:

Testing

Run the test suite:

Performance Benchmarks

Bob Query Builder is highly optimized for real-world applications:

Query Building Performance

Large Dataset Handling

Optimization Features

The query builder includes several optimization features:

Use Cases

Bob Query Builder is perfect for:

Integration Examples

WordPress / Quantum ORM

Standalone PHP Application

Integration with Any Framework

Bob Query Builder can be registered as a service in any dependency injection container:

📚 Documentation

Full documentation is available at https://marwen-brini.github.io/bob-the-builder/

The documentation includes:

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

Testing Requirements

License

The Bob Query Builder is open-sourced software licensed under the MIT license.

Project Repository

🔗 GitHub: https://github.com/Marwen-Brini/bob-the-builder

Credits

Support

For bugs and feature requests, please use the GitHub issues.

Roadmap

Completed ✅

v3.0 - Completed ✅

Planned Features


All versions of bob-the-builder with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3|^8.4
ext-pdo Version *
psr/log Version ^3.0
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 marwen-brini/bob-the-builder contains the following files

Loading the files please wait ...