stilmark / database
PHP/Mysqli database connection and query builder.
Installs: 144
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 5
Type:package
Requires
- php: >=7
- stilmark/parse: >=v0.70
- symfony/dotenv: *
This package is auto-updated.
Last update: 2025-01-18 10:31:11 UTC
README
Database abstraction for PHP
MySQLi functions, Query builder and Model instance.
Install using composer
composer require stilmark/database
Basic usage
require('/vendor/autoload.php');
use Symfony\Component\Dotenv\Dotenv;
use Stilmark\Parse\Dba;
$dotenv = new Dotenv();
$dotenv->load(ROOT.'/.env');
# Build sql queries
$users = Dba::instance()->table('users')->list();
# Extend your models on Dbi()
$users = User::list();