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 10mo 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 today

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 4% of packages

Maintenance40

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity14

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://avatars.githubusercontent.com/u/55080762?v=4)[Si-gi](/maintainers/Si-gi)[@Si-gi](https://github.com/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

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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