PHPackages                             hamworks/simple-csv-exporter - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hamworks/simple-csv-exporter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hamworks/simple-csv-exporter
============================

3.0.2(1y ago)7675GPL-2.0-or-laterPHPPHP &gt;=7.4

Since Dec 9Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hamworks/simple-csv-exporter)[ Packagist](https://packagist.org/packages/hamworks/simple-csv-exporter)[ RSS](/packages/hamworks-simple-csv-exporter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (31)Used By (0)

Simple CSV Exporter
===================

[](#simple-csv-exporter)

Contributors: Toro\_Unit,hamworks
Donate link:
Tags: CSV,export
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 3.0.2 License: GPLv2 or later
License URI:

Simple CSV Exporter.

Description
-----------

[](#description)

Simple CSV Exporter. Exported CSV can be imported with [Really Simple CSV Importer](https://ja.wordpress.org/plugins/really-simple-csv-importer/).

When you select a post type, the posts will be exported.

Github Repo:

### Customize the data to be exported

[](#customize-the-data-to-be-exported)

Customize for column.

```
use HAMWORKS\WP\Simple_CSV_Exporter\Data_Builder;
add_action( 'simple_csv_exporter_created_data_builder',
	function ( Data_Builder $data ) {
		// Remove column.
		$data->append_drop_column( 'page_template' );
		// Add custom field column.
		$data->append_meta_key( 'my_meta_key' );
	}
);
```

Customize posts for export.

```
add_action( 'simple_csv_exporter_data_builder_for_wp_posts_pre_get_posts',
	function ( WP_Query $query ) {
		$query->set( 'order', 'ASC' );
	}
);
```

Data filter for metadata.

```
add_filter( 'simple_csv_exporter_data_builder_for_wp_posts_get_post_meta_fields',
	function ( array $fields ) {
		foreach (
			array(
				'your_flag',
			) as $key
		) {
			if ( isset( $fields[ $key ] ) ) {
				$fields[ $key ] = ! empty( $fields[ $key ] ) ? 'TRUE' : 'FALSE';
			}
		}
		return $fields;
	}
);
```

Data filter for post.

```
add_filter(
	'simple_csv_exporter_data_builder_for_wp_posts_row_data',
	function ( $row_data, $post ) {
		$row_data['permalink'] = get_permalink( $post );
		unset( $row_data['comment_status'] );
		return $row_data;
	},
	10,
	2
);
```

Changelog
---------

[](#changelog)

### 3.0.0

[](#300)

- Add support UTF-8 with BOM.
- Refactor code.

### 2.2.0

[](#220)

- Add `simple_csv_exporter_data_builder_for_wp_posts_get_the_terms_field` filter.

### 2.1.7

[](#217)

- Fix taxonomy export.

### 2.1.0

[](#210)

- Rename hooks.
- Add `simple_csv_exporter_data_builder_for_wp_posts_row_data` filter.

### 2.0.1

[](#201)

- Tested on WP 6.0
- Drop support WP 5.7 and PHP 7.3

### 2.0.0

[](#200)

- Use PHP-DI.
- Refactoring.

### 1.1.0

[](#110)

- Refactoring release.

### 1.0.0

[](#100)

- first release.

### 0.0.1

[](#001)

- internal release.

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~60 days

Recently: every ~0 days

Total

25

Last Release

534d ago

Major Versions

0.0.4 → 1.0.0-beta.12020-12-11

0.0.5 → 1.0.02020-12-11

1.1.0 → 2.0.02020-12-26

2.2.0 → 3.0.02024-11-29

PHP version history (3 changes)0.0.1PHP &gt;=7.2

2.0.1PHP &gt;=7.4

2.1.1PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/b1738118b1515a2c312e90b71dc041a57a90db61144063f36de6b27587b507d6?d=identicon)[torounit](/maintainers/torounit)

---

Top Contributors

[![torounit](https://avatars.githubusercontent.com/u/1908815?v=4)](https://github.com/torounit "torounit (150 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/hamworks-simple-csv-exporter/health.svg)

```
[![Health](https://phpackages.com/badges/hamworks-simple-csv-exporter/health.svg)](https://phpackages.com/packages/hamworks-simple-csv-exporter)
```

###  Alternatives

[infinum/eightshift-libs

WordPress libs developed by Eightshift team to use in modern WordPress.

63118.9k3](/packages/infinum-eightshift-libs)[drupal-code-builder/drupal-code-builder

Code generator for Drupal

27241.1k1](/packages/drupal-code-builder-drupal-code-builder)[php-di/zf1-bridge

Integrates PHP-DI to Zend Framework 1

27457.8k1](/packages/php-di-zf1-bridge)[sansec/composer-integrity-plugin

5624.2k1](/packages/sansec-composer-integrity-plugin)[php-di/symfony-bridge

Integrates PHP-DI to Symfony

17168.2k](/packages/php-di-symfony-bridge)[okapi/aop

PHP AOP is a PHP library that provides a powerful Aspect Oriented Programming (AOP) implementation for PHP.

3812.0k](/packages/okapi-aop)

PHPackages © 2026

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