PHPackages                             dantleech/symfony-form-array-to-delimited-string-transformer - 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. dantleech/symfony-form-array-to-delimited-string-transformer

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

dantleech/symfony-form-array-to-delimited-string-transformer
============================================================

Data transformer for SF form. Transforms delimited to string to array and vice-versa

0.1(11y ago)15.0k5[2 issues](https://github.com/dantleech/symfony-form-array-to-delimited-string-transformer/issues)[1 PRs](https://github.com/dantleech/symfony-form-array-to-delimited-string-transformer/pulls)1MITPHPPHP &gt;=5.3

Since Oct 11Pushed 5y ago2 watchersCompare

[ Source](https://github.com/dantleech/symfony-form-array-to-delimited-string-transformer)[ Packagist](https://packagist.org/packages/dantleech/symfony-form-array-to-delimited-string-transformer)[ RSS](/packages/dantleech-symfony-form-array-to-delimited-string-transformer/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (1)

Array to delimited string data transformer
==========================================

[](#array-to-delimited-string-data-transformer)

[![Build Status](https://camo.githubusercontent.com/234d8ded9716c86119d953a7722ad694d3a715234171d0e3694e0a78425b8cc6/68747470733a2f2f7472617669732d63692e6f72672f64616e746c656563682f73796d666f6e792d666f726d2d61727261792d746f2d64656c696d697465642d737472696e672d7472616e73666f726d65722e737667)](https://travis-ci.org/dantleech/symfony-form-array-to-delimited-string-transformer)

This is a data transformer for the Symfony form framework.

It is meant for transforming text fields containing delimited strings to arrays.

Usage
-----

[](#usage)

You can use the data transformer as follows:

```
$form->add(
    $builder->create('tags', 'text')->addModelTransformer(
        new ArrayToDelimitedStringTransformer()
    )
);
```

This will transform the `tags` text field as follows:

```
// Tranform
array('one', 'two', 'three', 'four') === 'one, two, three, four'

// Reverse transform
'   one ,  two    , three, four,' === array('one', 'two', 'three', 'four')
```

Changing the delimiter
----------------------

[](#changing-the-delimiter)

You can change the delimiting string with the first constructor argument:

```
new ArrayToDelimitedStringTransformer(';')
```

Will result in:

```
// Transform
array('one', 'two', 'three', 'four') === 'one; two; three; four'

// Reverse Transform
'one   ; two;three ;     four' => array('one', 'two', 'three')
```

Output padding
--------------

[](#output-padding)

Additionally you can change the way in which the output is formatted with by setting the amount of whitespace (padding) before and after the text elements produced by a transformation:

```
new ArrayToDelimitedStringTransformer('%', 1, 1)
```

Will result in:

```
// Transform
array('one', 'two', 'three', 'four') === 'one % two % three % four'

// Reverse Transform
'one   % two%three %     four' => array('one', 'two', 'three')
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% 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

Unknown

Total

1

Last Release

4231d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/24ec7d5d6b7ea54007be5d7b4f43800381cc1e22929f7d2276fba30e497fdfa6?d=identicon)[dantleech](/maintainers/dantleech)

---

Top Contributors

[![dantleech](https://avatars.githubusercontent.com/u/530801?v=4)](https://github.com/dantleech "dantleech (8 commits)")[![MacDada](https://avatars.githubusercontent.com/u/136261?v=4)](https://github.com/MacDada "MacDada (4 commits)")[![OskarStark](https://avatars.githubusercontent.com/u/995707?v=4)](https://github.com/OskarStark "OskarStark (1 commits)")

### Embed Badge

![Health badge](/badges/dantleech-symfony-form-array-to-delimited-string-transformer/health.svg)

```
[![Health](https://phpackages.com/badges/dantleech-symfony-form-array-to-delimited-string-transformer/health.svg)](https://phpackages.com/packages/dantleech-symfony-form-array-to-delimited-string-transformer)
```

###  Alternatives

[barryvdh/laravel-form-bridge

This packages integrates Symfony Form Component in Laravel.

163354.8k1](/packages/barryvdh-laravel-form-bridge)[pugx/autocompleter-bundle

Add an autocomplete type to forms

93861.6k3](/packages/pugx-autocompleter-bundle)[jbtronics/settings-bundle

A symfony bundle to easily create typesafe, user-configurable settings for symfony applications

9546.7k2](/packages/jbtronics-settings-bundle)[symfony/ux-toggle-password

Toggle visibility of password inputs for Symfony Forms

26508.0k5](/packages/symfony-ux-toggle-password)[pixelopen/cloudflare-turnstile-bundle

A simple package to help integrate Cloudflare Turnstile on Symfony.

31205.8k3](/packages/pixelopen-cloudflare-turnstile-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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