PHPackages                             sigi/temp-table-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. sigi/temp-table-bundle

ActiveProject[Database &amp; ORM](/categories/database)

sigi/temp-table-bundle
======================

Symfony bundle to create temp database

001PHPCI passing

Since Sep 7Pushed 8mo agoCompare

[ Source](https://github.com/Si-gi/TempTableBundle)[ Packagist](https://packagist.org/packages/sigi/temp-table-bundle)[ RSS](/packages/sigi-temp-table-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

TempTableBundle
===============

[](#temptablebundle)

This bundle aim to manage table database which are not entity

How to import a csv as Table
============================

[](#how-to-import-a-csv-as-table)

```

{
    // autowiring
    public function __construct(private TempTableManager $tempTable,
    private LoggerInterface $logger,
    private Connection $doctrineConnection,
    private TableFactory $tableFactory
    ){
         parent::__construct();
    }

    public function import(){
        $config = new TempTableConfig('temp_', 24, 1000);
        $connection = new DoctrineDatabaseConnection($this->doctrineConnection);
        $typeConverter = new PostgreSqlTypeConverter();

        // services creations
        $tableCreator = new PostgreSqlTableCreator($connection, $this->tableFactory, $config, $this->logger);
        $csvImporter = new StrategyCsvImporter(
            $connection,
            $this->logger,
            new CopyFromImportStrategy($connection, $this->logger),
            new BatchInsertStrategy($connection, $typeConverter, $config, $this->logger)
        );
        $tableRegistry = new DatabaseTableRegistry($connection, $this->logger);
        $tableCleaner = new ExpiredTableCleaner($connection, $tableRegistry, $config, $this->logger);

        $tempTableManager = new TempTableManager(
            $tableCreator,
            $csvImporter,
            $tableRegistry,
            $tableCleaner,
            $this->logger
        );

        $tempTableManager ->createTableFromCsv(__DIR__."/CsvTest.csv", "test");

```

How to fetch data using the bundle:
===================================

[](#how-to-fetch-data-using-the-bundle)

```
    public function fetchData(Connection $doctrineConnection): int
    {

        $query = new TempTableQuery($doctrineConnection);
        $conditions = ['col_453' => "v0nMqky1BP"];
        $query->query("tmptemp_test", ["col_453"])->addConditions($conditions);
        $results =$query->getQb()->executeQuery()->fetchAllAssociative();
        dump($results);
        return Command::FAILURE;
    }

```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance43

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2888d076397ea755911dc36014ba3143a070718892f2ace82c9206834f59365c?d=identicon)[Si-gi](/maintainers/Si-gi)

---

Top Contributors

[![Si-gi](https://avatars.githubusercontent.com/u/55080762?v=4)](https://github.com/Si-gi "Si-gi (9 commits)")

### Embed Badge

![Health badge](/badges/sigi-temp-table-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/sigi-temp-table-bundle/health.svg)](https://phpackages.com/packages/sigi-temp-table-bundle)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90440.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)[wildside/userstamps

Laravel Userstamps provides an Eloquent trait which automatically maintains `created\_by` and `updated\_by` columns on your model, populated by the currently authenticated user in your application.

7511.7M13](/packages/wildside-userstamps)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
