Arsen Mirzaev Tatyano-Muradovich 24ef880439 | ||
---|---|---|
mirzaev/csv | ||
.gitignore | ||
LICENSE | ||
README.md | ||
composer.json | ||
composer.lock |
Comma-Separated Values by RFC 4180
A lightweight database in pure PHP
It will perfectly replace complex databases in simple projects
Requirements
- PHP 8.4
Installation
composer require mirzaev/csv
- Create a class that inherits
mirzaev/csv/database
and redefine thedatabase::FILE
constant - Enjoy!
Example
<?php
// Library for CSV
use mirzaev\csv\{database, record};
// Initializing the database
$database = new database('name', 'age', 'created');
// Initializing the record
$record = new record(['Arsen', '23', time());
// Writing to the database
$database->write($record);
?>
Used by
- My site-article about how i was kidnapped by PMC Wagner operatives mirzaev/repression
- My decentralized P2P blockchain chats project mirzaev/notchat