
pool/sid/main/p/php-ease-fluentpdo/php-ease-fluentpdo_0.2.6_all.deb
php-ease-fluentpdo| Filename | pool/sid/main/p/php-ease-fluentpdo/php-ease-fluentpdo_0.2.6_all.deb |
| Version | 0.2.6 |
| Age in days | 68 |
| Release date | 2025 08. 27. |
| Size | 11 KB |
| id | 145 |
| Name | php-ease-fluentpdo |
| Package | |
| Appname | |
| Essential | |
| Vendor | |
| License | |
| Distribution | sid |
| Suite | main |
| Source | |
| Architecture | binary-i386 |
| MultiArch | |
| Maintainer | Vítězslav Dvořák |
| InstalledSize | 59 |
| Depends | php-ease-core , php-pdo-mysql , php-pdo-pgsql , php-pdo-sqlite |
| PreDepends | |
| Breaks | |
| Enhances | |
| Section | web |
| Priority | optional |
| Description | Database support for EasePHP Framework |
| LongDescription | FluentPDO adapter for ease framework with ORM and Enginge classes |
| AutoBuiltPackage | |
| Filename | pool/sid/main/p/php-ease-fluentpdo/php-ease-fluentpdo_0.2.6_all.deb |
| MD5sum | 96fb21f7994181542470f0e1e0314695 |
| SHA1 | 515a9e21fa72fefec2e6a4c01293578bb81bb7b0 |
| SHA256 | 19cabfbb4decc2b74316cdadaf0baf56f46596da7ddf5077b50083c26504c2b0 |
| SHA512 | 7bdce4a74a4a21d705f966c06032faf52a158d9d604d72dedf1489411a23ea3cd59755d2b8818e9bdd9adfa6975b9bce35242015273642c732a559c864b9579f |
| Size | 11260 |
| Auto-Built-Package | |
| Conflicts | ease-framework |
| Homepage | https://github.com/VitexSoftware/php-ease-fluentpdo |
| Provides | |
| Existing | |
| fileMtime | 2025-08-27 01:05:30 |
| created | 2021-03-20 03:24:39 |
| updated | 2025-08-26 23:05:30 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-ease-fluentpdo/ | |
| ./usr/share/doc/php-ease-fluentpdo/changelog.gz | 295 |
| ./usr/share/php/ | |
| ./usr/share/php/EaseFluentPDO/ | |
| ./usr/share/php/EaseFluentPDO/Engine.php | 2831 |
| ./usr/share/php/EaseFluentPDO/Orm.php | 15257 |
| ./usr/share/php/EaseFluentPDO/PDO.php | 17430 |
| ./usr/share/php/EaseFluentPDO/SQL.php | 11565 |
| ./usr/share/php/EaseFluentPDO/composer.json | 435 |
| ./ | |
| ./usr/ | |
| ./usr/share/ | |
| ./usr/share/doc/ | |
| ./usr/share/doc/php-ease-fluentpdo/ | |
| ./usr/share/doc/php-ease-fluentpdo/changelog.gz | 295 |
| ./usr/share/php/ | |
| ./usr/share/php/EaseFluentPDO/ | |
| ./usr/share/php/EaseFluentPDO/Engine.php | 2831 |
| ./usr/share/php/EaseFluentPDO/Orm.php | 15257 |
| ./usr/share/php/EaseFluentPDO/PDO.php | 17430 |
| ./usr/share/php/EaseFluentPDO/SQL.php | 11565 |
| ./usr/share/php/EaseFluentPDO/composer.json | 435 |
SQL/PDO Support for EasePHP Framework using FluentPDO
This library provides SQL database support for the EasePHP Framework using FluentPDO for fluent SQL query building. It bridges the gap between Ease Framework's object-oriented approach and modern database operations.
\Ease\SQL\Engine - Main database engine with FluentPDO integration\Ease\SQL\PDO - Enhanced PDO wrapper\Ease\SQL\Orm - Object-relational mapping base class\Ease\SQL\SQL - Abstract SQL operations class\Ease\Logger\LogToSQL - Database logging functionality<?php
require_once 'vendor/autoload.php';
// Configure database connection
define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_DATABASE', 'myapp');
define('DB_USERNAME', 'user');
define('DB_PASSWORD', 'password');
// Create a database-backed object
class User extends \Ease\SQL\Engine {
public function __construct($identifier = null) {
$this->myTable = 'users';
$this->keyColumn = 'id';
parent::__construct($identifier);
}
}
// Usage example
$user = new User();
$user->setDataValue('name', 'John Doe');
$user->setDataValue('email', 'john@example.com');
$user->save(); // Inserts or updates the record
Download https://github.com/VitexSoftware/php-ease-fluentpdo/archive/master.zip or use
composer require vitexsoftware/ease-fluentpdo
For Debian, Ubuntu & friends please use repo:
echo "deb http://repo.vitexsoftware.com $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/vitexsoftware.list
sudo wget -O /etc/apt/trusted.gpg.d/vitexsoftware.gpg http://repo.vitexsoftware.com/keyring.gpg
sudo apt update
sudo apt install php-vitexsoftware-ease-fluentpdo
In this case please add this to your app composer.json:
"require": {
"deb/ease-fluentpdo": "*"
},
"repositories": [
{
"type": "path",
"url": "/usr/share/php/EaseSQL",
"options": {
"symlink": true
}
}
]
The library uses these environment constants for database configuration:
| Constant | Description | Default | Example |
|----------|-------------|---------|----------|
| DB_TYPE | Database type | - | mysql, pgsql, sqlite, sqlsrv |
| DB_HOST | Database host | localhost | 127.0.0.1, db.example.com |
| DB_PORT | Database port | - | 3306, 5432 |
| DB_DATABASE | Database name/schema | - | myapp, production_db |
| DB_USERNAME | Database user | - | dbuser, app_user |
| DB_PASSWORD | Database password | - | secret123 |
| DB_SETUP | Setup commands after connect | - | SET NAMES utf8 |
| DB_PERSISTENT | Use persistent connections | 1 | 0 (disable), 1 (enable) |
| DB_SETTINGS | PDO connection settings | - | JSON string of PDO options |
| DB_DEBUG | Enable SQL query logging | false | true, false |
define('DB_TYPE', 'mysql');
define('DB_HOST', 'localhost');
define('DB_PORT', '3306');
define('DB_DATABASE', 'myapp');
define('DB_USERNAME', 'dbuser');
define('DB_PASSWORD', 'password');
define('DB_SETUP', 'SET NAMES utf8mb4');
define('DB_TYPE', 'pgsql');
define('DB_HOST', 'localhost');
define('DB_PORT', '5432');
define('DB_DATABASE', 'myapp');
define('DB_USERNAME', 'postgres');
define('DB_PASSWORD', 'password');
define('DB_TYPE', 'sqlite');
define('DB_DATABASE', '/path/to/database.sqlite');
// Create a model class
class Article extends \Ease\SQL\Engine {
public function __construct($identifier = null) {
$this->myTable = 'articles';
$this->keyColumn = 'id';
parent::__construct($identifier);
}
}
// Create new record
$article = new Article();
$article->setDataValue('title', 'My First Article');
$article->setDataValue('content', 'This is the content...');
$article->setDataValue('author_id', 1);
$savedId = $article->save();
// Load existing record
$article = new Article(1);
echo $article->getDataValue('title');
// Update record
$article->setDataValue('title', 'Updated Title');
$article->save();
// Delete record
$article->delete();
$engine = new \Ease\SQL\Engine();
// Select with conditions
$users = $engine->listingQuery()
->from('users')
->where('active = ?', 1)
->where('created_at > ?', '2023-01-01')
->orderBy('name ASC')
->fetchAll();
// Complex joins
$articles = $engine->listingQuery()
->from('articles a')
->leftJoin('users u ON a.author_id = u.id')
->select('a.*, u.name as author_name')
->where('a.published = ?', 1)
->fetchAll();
// Configure SQL logging
define('DB_DEBUG', true);
// Log messages to database
$logger = new \Ease\Logger\LogToSQL();
$logger->addToLog('Application started', 'info');
$logger->addToLog('User login failed', 'warning', ['user_id' => 123]);
# Clone repository
git clone https://github.com/VitexSoftware/php-ease-fluentpdo.git
cd php-vitexsoftware-ease-fluentpdo
# Install dependencies
composer install
# Copy environment configuration
cp tests/.env.example tests/.env
# Edit tests/.env with your database credentials
mysqladmin -u root -p create easetest
mysql -u root -p -e "GRANT ALL PRIVILEGES ON easetest.* TO easetest@localhost IDENTIFIED BY 'easetest'"
sudo -u postgres createuser --createdb --password easetest
sudo -u postgres createdb -O easetest easetest
cd tests
../vendor/bin/phinx migrate
../vendor/bin/phinx seed:run
# Run all tests
make phpunit
# Or run directly with PHPUnit
./vendor/bin/phpunit --bootstrap ./tests/bootstrap.php --configuration ./phpunit.xml
# Run specific test
./vendor/bin/phpunit tests/src/Ease/SQL/EngineTest.php
# Static analysis
make static-code-analysis
# Code style fixes
make cs
# Run all quality checks
composer test
# Build Debian package
make deb
# or
dpkg-buildpackage -b -uc
# Validate composer.json
composer validate
# Update dependencies
composer update
# Create optimized autoloader
composer dump-autoload --optimize
\Ease\SQL\EngineMain database engine class providing ORM functionality.
Key Methods:
save() - Insert or update recordload($id) - Load record by IDdelete() - Delete current recordlistingQuery() - Get FluentPDO query buildersetDataValue($key, $value) - Set field valuegetDataValue($key) - Get field value\Ease\SQL\PDOEnhanced PDO wrapper with additional functionality.
\Ease\SQL\OrmBase ORM class for database-backed objects.
\Ease\Logger\LogToSQLDatabase logging implementation.
Methods:
addToLog($message, $type, $data) - Add log entrygetLogLevel() - Get current log levelsetLogLevel($level) - Set log levelThe library includes support for database migrations using Phinx:
# Create new migration
make newmigration
# Run migrations
make migration
# Create seed
make newseed
# Run seeds
make seed
git checkout -b feature/amazing-feature)make phpunit)make cs && make static-code-analysis)git commit -m 'Add amazing feature')git push origin feature/amazing-feature)vitexsoftware/ease-core: >= 1.49.0fpdo/fluentpdo: >= 2.2.4This project is licensed under the MIT License - see the LICENSE file for details.
For support and questions:
| Version | Download/Install count | Last hit |
|---|