PHPackages                             bfg/text - 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. bfg/text

ActiveBfg-app[Utility &amp; Helpers](/categories/utility)

bfg/text
========

All sorts of chips to work with the text

0.0.4(2y ago)157.2k—8.7%14MITPHPPHP &gt;=8.0.0

Since Jul 13Pushed 2y ago2 watchersCompare

[ Source](https://github.com/bfg-s/text)[ Packagist](https://packagist.org/packages/bfg/text)[ RSS](/packages/bfg-text/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (5)Used By (4)

Extension text
==============

[](#extension-text)

Helpers
-------

[](#helpers)

### is\_json

[](#is_json)

Checks whether the row is Json object.

```
is_json(json_encode(['test' => true]));
// true
```

### lang\_in\_text

[](#lang_in_text)

Applies special triggers of language variables.

```
lang_in_text("Text: @validation.accepted");
// Text: The :attribute must be accepted.
```

### tag\_replace

[](#tag_replace)

Invested tag replacement on the object values or array.

```
tag_replace("Hello, {user.name} {user.lastname}. You phone: {phone}", [
    'user' => ['name' => 'Ivan', 'lastname' => 'Petrov'],
    'phone' => '123456789'
]);
// Hello, Ivan Petrov. You phone: 123456789
```

### file\_lines\_get\_contents

[](#file_lines_get_contents)

Get data from file by lines.

```
file_lines_get_contents('LICENSE.md', 3, 3);
//Copyright (c) 2021 BFG
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity49

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

Total

4

Last Release

1092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59b2d162a30938ac2c3c56340ebea07a6778a3e1c86cb70b5bc28b69a1c3f04d?d=identicon)[bfg](/maintainers/bfg)

---

Top Contributors

[![Xsaven](https://avatars.githubusercontent.com/u/1726771?v=4)](https://github.com/Xsaven "Xsaven (9 commits)")

---

Tags

laraveltextextension

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/bfg-text/health.svg)

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

###  Alternatives

[unisharp/laravel-ckeditor

JavaScript WYSIWYG web text editor (for laravel).

377762.3k5](/packages/unisharp-laravel-ckeditor)[ericlagarda/nova-text-card

A custom card for Laravel Nova to show Text in cards with some good options

20388.6k2](/packages/ericlagarda-nova-text-card)[outl1ne/nova-inline-text-field

A Laravel Nova inline text field.

23252.9k2](/packages/outl1ne-nova-inline-text-field)[gkermer/nova-text-auto-complete

A Laravel Nova text autocomplete field.

22115.5k1](/packages/gkermer-nova-text-auto-complete)

PHPackages © 2026

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