PHPackages                             dqneo/smarty-delimiter-converter - 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. [CLI &amp; Console](/categories/cli)
4. /
5. dqneo/smarty-delimiter-converter

ActiveLibrary[CLI &amp; Console](/categories/cli)

dqneo/smarty-delimiter-converter
================================

a cli tool to convert delimiters in smarty template files

v0.0.3(10y ago)126LGPL-3.0PHP

Since Feb 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/DQNEO/smarty-delimiter-converter)[ Packagist](https://packagist.org/packages/dqneo/smarty-delimiter-converter)[ Docs](https://github.com/dqneo/smarty-delimiter-converter)[ RSS](/packages/dqneo-smarty-delimiter-converter/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (4)Used By (0)

Smarty Delimiter Converter
==========================

[](#smarty-delimiter-converter)

[![Build Status](https://camo.githubusercontent.com/fcaa7373a5fda61679218f132da34e48e2fc8941a282ce07bd3a53b88bbfc3a0/68747470733a2f2f7472617669732d63692e6f72672f44514e454f2f736d617274792d64656c696d697465722d636f6e7665727465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DQNEO/smarty-delimiter-converter)

convert tool to replace delimiters (e.g. from `{` `}` to `{{` `}}`) in your smarty template files.

DESCRIPTION
===========

[](#description)

It converts the content

```
{if $config.smarty_debug}
  {debug}
{/if}

```

into this

```
{{if $config.smarty_debug}}
  {{debug}}
{{/if}}

```

You can customize delimiters as you like.

INSTALL
=======

[](#install)

```
composer require dqneo/smarty-delimiter-converter

```

USAGE
=====

[](#usage)

```
use DQNEO\SmartyDelimiterConverter\Converter;

// define delimiters
$from = ['{', '}'];
$to = ['{{', '}}'];

$converter = new Converter($from, $to);

// convert a content
$converted = $converter->convert('hello {$name}'); // => 'hello {{$name}}'

# convert a file
$converted = $converter->convert('/path/to/file.tpl'); // returns a converted content
```

you can convert all template files under a directory recursivlely

```
./bin/smarty-delimiter-converter /path/to/dir/

```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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 ~0 days

Total

3

Last Release

3793d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7f6098905fa9174647908a38741efcecf355059685cae608f6184ecdfa94d861?d=identicon)[DQNEO](/maintainers/DQNEO)

---

Top Contributors

[![DQNEO](https://avatars.githubusercontent.com/u/188741?v=4)](https://github.com/DQNEO "DQNEO (50 commits)")

---

Tags

clitemplatingsmarty

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dqneo-smarty-delimiter-converter/health.svg)

```
[![Health](https://phpackages.com/badges/dqneo-smarty-delimiter-converter/health.svg)](https://phpackages.com/packages/dqneo-smarty-delimiter-converter)
```

###  Alternatives

[symfony/console

Eases the creation of beautiful and testable command line interfaces

9.8k1.1B13.4k](/packages/symfony-console)[nunomaduro/collision

Cli error handling for console/command-line PHP applications.

4.7k357.7M10.6k](/packages/nunomaduro-collision)[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k260.6M370](/packages/nunomaduro-termwind)[wp-cli/wp-cli

WP-CLI framework

5.1k18.5M394](/packages/wp-cli-wp-cli)[wp-cli/php-cli-tools

Console utilities for PHP

68227.8M374](/packages/wp-cli-php-cli-tools)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1348.3k1](/packages/socialengine-sniffer-rules)

PHPackages © 2026

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