Download the PHP package callismart/dbprism without Composer

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

DBPrism

Refract your queries across any database.

Intent-based database abstraction layer with unified adapters, schema inspection, and migrations. Write once. Query everywhere.

PHP Version License: MIT


Table of Contents


What is DBPrism?

DBPrism is a sophisticated, framework-agnostic database abstraction layer that unifies database operations across MySQL, PostgreSQL, and SQLite.

Like a prism refracting light into its component colors, DBPrism takes your query intents and refracts them into engine-specific SQLβ€”transparently, elegantly, and efficiently.

Core Features


Installation

Requirements:


Quick Start

1. Initialize the Database

2. Execute Simple Queries

3. Build Complex Queries with Intents


Supported Databases

MySQL / MariaDB

PostgreSQL

SQLite

PDO (Universal)

WordPress


Query Building API

SELECT Queries

Select queries are built using the SelectionIntent class, accessed via SQLBuilder::select().

Basic SELECT

SELECT with WHERE Conditions

WHERE Operators & Conditions

JOINs

GROUP BY, ORDER BY, LIMIT/OFFSET

INSERT Queries

Insert queries are built using the PersistenceIntent class, accessed via SQLBuilder::insert().

Single Row Insert

Multi-Row Insert (Bulk)

Insert with SET Alias

UPDATE Queries

Update queries are built using the PersistenceIntent class, accessed via SQLBuilder::update().

Basic UPDATE

UPDATE with Multiple WHERE Conditions

DELETE Queries

Delete queries are built using the DeleteIntent class, accessed via SQLBuilder::delete().

Basic DELETE

DELETE with Multiple Conditions


Schema Operations

CREATE TABLE

Create tables using the CreateTableIntent class with fluent Column and Constraint builders.

Basic CREATE TABLE

CREATE TABLE with Foreign Keys

Column Types

Column Modifiers

ALTER TABLE

Modify existing tables using the AlterTableIntent class.

[SECTION NEEDS CLARIFICATION] β€” I need more context on:

TRUNCATE TABLE

DROP TABLE


Migrations with Fluent Helpers

TableHelper

The TableHelper provides fluent interface for table-level operations.

ColumnHelper

The ColumnHelper provides fluent interface for column-level operations.

ConstraintHelper

The ConstraintHelper provides fluent interface for constraint operations.

[SECTION NEEDS CLARIFICATION] β€” I need more context on:


Schema Inspection

Inspect database schema using the Inspector class.

Table Operations

Column Operations

Index Operations

Primary Key Operations

Foreign Key Operations

Constraint Operations

System Information


Transactions

Execute multiple queries atomically with automatic rollback on failure.


Best Practices

  1. Always Use Parameterized Queries

  2. Use Transactions for Related Operations

  3. Leverage the Inspector for Schema-Aware Logic

  4. Handle Database Errors Gracefully

Testing

Run the test suite:


Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License β€” see the LICENSE file for details.


Author

Callistus Nwachukwu


Support

For issues, questions, or feature requests:


Made with ❀️ by Callismart


All versions of dbprism with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
callismart/dto Version ^1.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 callismart/dbprism contains the following files

Loading the files please wait ...