zualex / sqlcvs
PHP class for working SQL and CVS
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/zualex/sqlcvs
Requires
- php: >=5.4.0
Requires (Dev)
- phpunit/phpunit: 5.5.*
This package is not auto-updated.
Last update: 2025-10-06 20:14:42 UTC
README
PHP class for working SQL and CVS.
Exmaple
require_once __DIR__ . '/vendor/autoload.php'; use \SqlCvs\SqlCvs; $sqlCvs = new SqlCvs('mysql:dbname=test_db;host=127.0.0.1', 'root', ''); $table = 'my_table2'; if (!$sqlCvs->isExistTable($table)) { $sqlCvs->import($table, 'tests/example.cvs'); } $sqlCvs->setTable($table); $row = $sqlCvs->getRandomRow(); if (count($row)) { $sqlCvs->update($row['id'], ['status' => 1]); echo $row['value']; }