Download the PHP package initphp/database without Composer

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

InitPHP Database

A Composer-friendly, batteries-included facade over the InitORM stack — query builder, DBAL connection, ORM models and entities — plus a server-side helper for DataTables.js.

CI Latest Stable Version Total Downloads License PHP Version Require

What is this?

initphp/database does not reimplement an ORM. It is the InitPHP-branded entry point to the InitORM stack:

You write You actually get
InitPHP\Database\DB A static facade over InitORM\Database\Database.
InitPHP\Database\Database The InitORM Database class.
InitPHP\Database\Model The InitORM active-record Model.
InitPHP\Database\Entity The InitORM Entity with accessor / mutator hooks.
InitPHP\Database\Utils\Datatables\Datatables Original server-side DataTables.js helper — the one piece that lives in this package.

If a feature is documented for InitORM, it works here under the InitPHP namespace.

Requirements

Installation

Quick start

Documentation

Topic-by-topic guides live in docs/:

# Guide
01 Getting started — install, connect, first query, debug & logging
02 Query Builder — select / where / join / groupBy / orderBy / limit / raw
03 CRUD — create / read / update / delete and their *Batch siblings
04 Models — table binding, soft deletes, timestamp columns, access gates
05 Entities — attribute bag, accessor / mutator hooks (and the one PHP 8.2+ pitfall)
06 Transactions — automatic retry, dry-run / test mode
07 Query log — enableQueryLog + the log connection channel
08 Datatables — server-side DataTables.js integration end-to-end
09 Multiple connections — secondary databases via DB::connect() / Model::$credentials
10 Upgrading from 3.x / 4.x — breaking changes in 5.0 and the migration path

At a glance

Contributing

Org-wide guidelines (PSR-12, declare(strict_types=1), Conventional Commits, PHPStan + PHPUnit on every PR) live in the InitPHP .github repo:

Local checks before opening a PR:

Security

Please do not open a public issue for security vulnerabilities. The org-wide SECURITY.md describes the private disclosure channels (GitHub PVR + email).

Credits

Maintained by Muhammet ŞAFAK ([email protected]).

License

MIT.


All versions of database with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-pdo Version *
initorm/orm Version ^2.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 initphp/database contains the following files

Loading the files please wait ...