Download the PHP package webrium/foxdb without Composer
On this page you can find all versions of the php package webrium/foxdb. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download webrium/foxdb
More information about webrium/foxdb
Files in webrium/foxdb
Informations about the package foxdb
FoxDB
FoxDB is the database layer of the Webrium framework, available as a standalone package. It gives you a fluent query builder for writing SQL without strings, an Eloquent-style ORM for working with your data as objects, a schema builder for managing your database structure in PHP, and a migration and seeder system for versioning and populating your database. All of this runs on top of PDO with no external dependencies beyond the driver itself.
Supports MySQL, PostgreSQL, and SQLite, with per-driver SQL generation handled internally — write your queries and migrations once.
Requirements
- PHP 8.1 or higher
- PDO extension for your chosen database:
pdo_mysql,pdo_pgsql, orpdo_sqlite
Installation
Quick Start
What's Included
- Query Builder — fluent, parameterized queries: selects, joins, aggregates, raw SQL, transactions
- Eloquent ORM — models with mass assignment protection, dirty tracking, attribute casting, soft deletes, and full JSON serialization
- Relations —
hasOne,hasMany,belongsTo,belongsToMany,hasManyThrough, with lazy and eager loading - Collection — map, filter, sort, chunk, paginate, and JSON-serialize query results
- Schema Builder — create and modify tables with a fluent Blueprint API instead of writing DDL by hand
- Migrations — version your schema with
up()/down()methods, rollback, and refresh - Seeders — repeatable scripts for populating your database with default or test data
- Query Log & Hooks — log every query, measure execution time, detect slow queries, attach
beforeQuery/afterQuerycallbacks
Documentation
The complete documentation for FoxDB lives at webrium.dev/docs/v5/database:
- Introduction — design goals, namespace, standalone setup
- Connections — registering connections, multi-connection, raw SQL, transactions, query log
- Query Builder — selects, where conditions, joins, aggregates, writes
- Eloquent ORM — models, CRUD, mass assignment, dirty tracking, scopes
- Relationships — all relation types, eager loading, pivot methods
- Collections — the fluent API for result sets
- Casts & Serialization — attribute casts,
toArray(),toJson() - Pagination — paginating large result sets
- Migrations, Schema & Seeders — full DDL and data-evolution workflow
The same documentation is also available as plain Markdown in the webrium/docs repository.
Running Tests
CI runs all three drivers automatically on every pull request via GitHub Actions.
Part of the Webrium Ecosystem
FoxDB is one of four packages that make up the full Webrium Framework:
webrium/core— routing, controllers, requests/responses, sessions, validation, and morewebrium/foxdb— this packagewebrium/view— Blade-compatible templating engine with hybrid static cachingwebrium/console— thewebriumCLI toolkit
Each is independently usable, except webrium/console which is framework-coupled.
License
MIT — see LICENSE.