PHPackages                             sebastiansulinski/smart-quotes - 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. sebastiansulinski/smart-quotes

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

sebastiansulinski/smart-quotes
==============================

Smart quotes replacement toolkit

v2.1.1(1y ago)2285.6k↓45%2MITPHPPHP ^8.2CI failing

Since Feb 11Pushed 1y ago1 watchersCompare

[ Source](https://github.com/sebastiansulinski/smart-quotes)[ Packagist](https://packagist.org/packages/sebastiansulinski/smart-quotes)[ RSS](/packages/sebastiansulinski-smart-quotes/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (14)Used By (0)

Smart quotes replacement toolkit
================================

[](#smart-quotes-replacement-toolkit)

The kit replaces all irregular - Microsoft version single and double quotes to simple - ASCII type ones.

Requirements
------------

[](#requirements)

Starting from version 1.3.0 package requires PHP 7.1 or higher. Please use version 1.2.0 for PHP 7.0 or 1.0.5 for earlier versions.

Usage example
-------------

[](#usage-example)

There are two implementations - one, which converts quotes and returns content as UTF-8 and the other which does the same, but returns it as ASCII - with the exception of a pound symbol (£), which is also returned correctly.

```
use SSD\SmartQuotes\Utf8CharacterSet;
use SSD\SmartQuotes\Factory as SmartQuotesFactory;

$string = "“Contrary to ‘popular belief’, Lorem Ipsum is not simply ‘random text’. The cost in Sterling is £20.00”";

// UTF-8 implementation
echo SmartQuotesFactory::filter(new Utf8CharacterSet, $string);

// ASCII implementation
echo SmartQuotesFactory::filter(new AsciiCharacterSet, $string);

// both return:
// "Contrary to 'popular belief', Lorem Ipsum is not simply 'random text'. The cost in Sterling is £20.00"

```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 87.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

Every ~286 days

Recently: every ~608 days

Total

13

Last Release

679d ago

Major Versions

v1.3.0 → v2.0.02021-07-20

PHP version history (5 changes)v1.1.0PHP ^7.0

v1.3.0PHP ^7.1

v2.0.0PHP ^8.0

v2.0.1PHP ^7.4|^8.0

v2.1.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2211203?v=4)[Sebastian Sulinski](/maintainers/sebastiansulinski)[@sebastiansulinski](https://github.com/sebastiansulinski)

---

Top Contributors

[![sebastiansulinski](https://avatars.githubusercontent.com/u/2211203?v=4)](https://github.com/sebastiansulinski "sebastiansulinski (7 commits)")[![OriginalEXE](https://avatars.githubusercontent.com/u/2056251?v=4)](https://github.com/OriginalEXE "OriginalEXE (1 commits)")

---

Tags

asciiphpsmart-quotesutf-8utf8

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sebastiansulinski-smart-quotes/health.svg)

```
[![Health](https://phpackages.com/badges/sebastiansulinski-smart-quotes/health.svg)](https://phpackages.com/packages/sebastiansulinski-smart-quotes)
```

PHPackages © 2026

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