All Projects → sonata-project → Exporter

sonata-project / Exporter

Licence: mit
Lightweight Exporter library

Projects that are alternatives of or similar to Exporter

Easyadminbundle
EasyAdmin is a fast, beautiful and modern admin generator for Symfony applications.
Stars: ✭ 3,391 (+783.07%)
Mutual labels:  bundle, symfony, symfony-bundle
Doctrinemigrationsbundle
Symfony integration for the doctrine/migrations library
Stars: ✭ 3,782 (+884.9%)
Mutual labels:  bundle, symfony, symfony-bundle
Enqueue Bundle
[READ-ONLY] Message queue bundle for Symfony. RabbitMQ, Amazon SQS, Redis, Service bus, Async events, RPC over MQ and a lot more
Stars: ✭ 233 (-39.32%)
Mutual labels:  bundle, symfony, symfony-bundle
Sonatauserbundle
Symfony SonataUserBundle
Stars: ✭ 301 (-21.61%)
Mutual labels:  bundle, symfony, symfony-bundle
Sonatablockbundle
Symfony SonataBlockBundle
Stars: ✭ 368 (-4.17%)
Mutual labels:  bundle, symfony, symfony-bundle
Fmelfinderbundle
📁 ElFinderBundle provides ElFinder integration with TinyMCE, CKEditor, Summernote editors
Stars: ✭ 231 (-39.84%)
Mutual labels:  bundle, symfony, symfony-bundle
Translationformbundle
Ease translations with some dedicated Symfony form types
Stars: ✭ 289 (-24.74%)
Mutual labels:  bundle, symfony, symfony-bundle
Gifexceptionbundle
😛 The GhostBuster of your exception page!
Stars: ✭ 197 (-48.7%)
Mutual labels:  bundle, symfony, symfony-bundle
Lexikformfilterbundle
This Symfony bundle aim to provide classes to build some form filters and then build a doctrine query from this form filter.
Stars: ✭ 360 (-6.25%)
Mutual labels:  bundle, symfony, symfony-bundle
J
❌ Multi-format spreadsheet CLI (now merged in http://github.com/sheetjs/js-xlsx )
Stars: ✭ 343 (-10.68%)
Mutual labels:  csv, xls, data
Victoire
Fullstack Symfony CMS: The perfect mix between a framework and a CMS
Stars: ✭ 227 (-40.89%)
Mutual labels:  bundle, symfony, symfony-bundle
Lexiktranslationbundle
This Symfony2 bundle allow to import translation files content into the database and provide a GUI to edit translations.
Stars: ✭ 347 (-9.64%)
Mutual labels:  bundle, symfony, symfony-bundle
Sonataintlbundle
Symfony SonataIntlBundle
Stars: ✭ 212 (-44.79%)
Mutual labels:  bundle, symfony, symfony-bundle
Liipthemebundle
Provides theming support for Symfony bundles
Stars: ✭ 292 (-23.96%)
Mutual labels:  bundle, symfony, symfony-bundle
Liiphellobundle
[DEPRECATED] Alternative Hello World Bundle for Symfony2 using several FriendsOfSymfony Bundles
Stars: ✭ 206 (-46.35%)
Mutual labels:  bundle, symfony, symfony-bundle
Lexikmaintenancebundle
This Symfony2 bundle allows you to place your website in maintenance mode by calling two commands in your console. A page with status code 503 appears to users, it is possible to authorize certain ips addresses stored in your configuration.
Stars: ✭ 253 (-34.11%)
Mutual labels:  bundle, symfony, symfony-bundle
Sonatapagebundle
This bundle provides a Site and Page management through container and block services
Stars: ✭ 181 (-52.86%)
Mutual labels:  bundle, symfony, symfony-bundle
Mercure Bundle
The MercureBundle allows to easily push updates to web browsers and other HTTP clients in the Symfony full-stack framework, using the Mercure protocol.
Stars: ✭ 195 (-49.22%)
Mutual labels:  bundle, symfony, symfony-bundle
Framework Bundle
The FrameworkBundle defines the main framework configuration, from sessions and translations to forms, validation, routing and more.
Stars: ✭ 3,056 (+695.83%)
Mutual labels:  bundle, symfony, symfony-bundle
Sensioframeworkextrabundle
An extension to Symfony FrameworkBundle that adds annotation configuration for Controller classes
Stars: ✭ 3,203 (+734.11%)
Mutual labels:  bundle, symfony, symfony-bundle

Data Exporter

Data Exporter is a lightweight library to export data into different formats.

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Branch Github Actions Coverage
2.x Test Coverage Status
master Test Coverage Status

Installation using Composer

composer require sonata-project/exporter

Usage

<?php

use Exporter\Handler;
use Exporter\Source\PDOStatementSourceIterator;
use Exporter\Writer\CsvWriter;

// Prepare the data source
$dbh = new \PDO('sqlite:foo.db');
$stm = $dbh->prepare('SELECT id, username, email FROM user');
$stm->execute();

$source = new PDOStatementSourceIterator($stm);

// Prepare the writer
$writer = new CsvWriter('data.csv');

// Export the data
Handler::create($source, $writer)->export();

Documentation

Support

For general support and questions, please use StackOverflow.

If you think you found a bug or you have a feature idea to propose, feel free to open an issue after looking at the contributing guide.

License

This package is available under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].