PHPackages                             roksta/punctuator - 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. roksta/punctuator

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

roksta/punctuator
=================

very simple punctuation for texts.

v1.1(9y ago)0111MITPHP

Since May 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/roksta21/punctuator)[ Packagist](https://packagist.org/packages/roksta/punctuator)[ RSS](/packages/roksta-punctuator/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (5)Used By (0)

Punctuator for Laravel
======================

[](#punctuator-for-laravel)

A simple punctuator for texts. Adds spaces after punctuation marks and formats texts.

How It Works
============

[](#how-it-works)

It is just a simple script that accespts a string and inspects it so that: The text begins with an uppercase character. After every fullstop(.) or question mark(?), there is a space and the next work begins with an uppercase character. After every comma(,), there is a space.

It is especially useful for formating user input before saving them to the database. It takes advantage of Laravel's model listeners through a Spacer.php trait.

Usage
=====

[](#usage)

```
use Roksta\Punctuator\Spacer;

class MyModel extends Model
{
    use Spacer;
    /**
    * set the columns you wish to punctuate in an array in the form shown below;
    * short defines columns where each word is to begin with an uppercase letter, eg, names, locations, etc
    * long is for sentences where spaces will be added after every comma, fullstop, etc.
    */
    public function setPunctuateColumns(): Array
    {
        return ['short' => ['name'], 'long' => ['description', 'comments']];
    }

    // Other model functions
}
```

Results
=======

[](#results)

sam roksta = Sam Roksta

this is very simple.really,really simple = This is very simple. Really, really simple.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity66

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

Total

4

Last Release

3343d ago

Major Versions

v0.2 → v1.02017-05-04

### Community

Maintainers

![](https://www.gravatar.com/avatar/dd09ef96b0cad07f317de336c5187435d45d9a46b985a79b4b0b2e508b9ff64e?d=identicon)[sam\_roksta](/maintainers/sam_roksta)

---

Top Contributors

[![roksta21](https://avatars.githubusercontent.com/u/7338127?v=4)](https://github.com/roksta21 "roksta21 (2 commits)")

---

Tags

punctuationspacing textformat text

### Embed Badge

![Health badge](/badges/roksta-punctuator/health.svg)

```
[![Health](https://phpackages.com/badges/roksta-punctuator/health.svg)](https://phpackages.com/packages/roksta-punctuator)
```

###  Alternatives

[baidubce/bce-sdk-php

BCE SDK for PHP

142.6k2](/packages/baidubce-bce-sdk-php)

PHPackages © 2026

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