Search by

golpilolz / csv-om

golpilolz

Object manager for CSV files

Package info

github.com/golpilolz/csv-om

Type:symfony-bundle

pkg:composer/golpilolz/csv-om

Statistics

Installs: 14

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.0.8 2026-11-03 09:06 UTC

This package is auto-updated.

Last update: 2026-11-03 09:08:09 UTC


README

Tests

A Doctrine-style object manager for Symfony, backed by CSV files: one file is one table, one row is one object. You map classes with attributes, then use find(), repositories, persist() and flush() as you would with Doctrine ORM.

$book = $om->find(Book::class, 7);
$book->setTitle('Foundation and Empire');

$om->persist(new Book(8, 'Second Foundation'));
$om->flush(); // rewrites library/books.csv

Requires PHP 8.3+, Symfony 7.4 or 8.x (Symfony 8 needs PHP 8.4+) and league/csv 9.28+.

Installation

The package is not on Packagist. Add the repository, then require it:

{
    "repositories": [
        { "type": "vcs", "url": "git@github.com:golpilolz/csv-om.git" }
    ]
}
composer require golpilolz/csv-om:dev-main

A draft Flex recipe is in recipe/ (not published yet, so it is not applied automatically). Register the bundle in config/bundles.php:

return [
    // ...
    Golpilolz\CsvOm\GolpilolzCsvOmBundle::class => ['all' => true],
];

Documentation