PHPackages                             lablog/stringy - 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. lablog/stringy

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

lablog/stringy
==============

1.0.1(12y ago)130PHPPHP &gt;=5.3.0

Since Mar 7Pushed 12y ago1 watchersCompare

[ Source](https://github.com/LaBlog/Stringy)[ Packagist](https://packagist.org/packages/lablog/stringy)[ RSS](/packages/lablog-stringy/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Stringy Twig Filters for LaBlog
===============================

[](#stringy-twig-filters-for-lablog)

A simple plugin for Lablog (or twig stand-alone).

Navigation
----------

[](#navigation)

- [Installation](#installation)
- [Laravel &amp; LaBlog Use](#laravel--lablog-usage)
- [Stand-Alone Twig Use](#using-with-stand-alone-twig)
- [Template Filter Use](#general-usage-in-templates)

Installation
------------

[](#installation)

Installation is done via composer packages.

To install, simply add the following to your `composer.json` file.

```
...
"require": {
    ...
    "lablog/stringy": "1.0.*"
    ...
}
...
```

Laravel &amp; LaBlog Usage
--------------------------

[](#laravel--lablog-usage)

To use the stringy filters with Laravel 4 and LaBlog, just add the service provider to your `app/config/app.php` providers list.

*Note: The provider must be added *after* the Laravel 4 Twig Bridge provider.**Note2: If you have LaBlog up and running, you will have already added the Twig Bridge provider.*

```
...
    'Lablog\Stringy\StringyServiceProvider'
...
```

Using with Stand-alone Twig
---------------------------

[](#using-with-stand-alone-twig)

To use the stringy filters with a stand-along, non-laravel bridged twig, just add the following to your twig extensions.

```
'Lablog\Stringy\Twig\StringyLoader'
```

*Note: This has **not** been tested!*

General Usage in Templates
--------------------------

[](#general-usage-in-templates)

To use the stringy filters in a template, simply use the name of *any* of the stringy functions as a filter.

```

    {{ string | ensureLeft('http://') }}

    {{ string | at(6) }}

```

Please see the official [twig github page](https://github.com/danielstjules/Stringy) for a full list of functions.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

2

Last Release

4498d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/40961dbdd7f3ae5a69c3964bed644239689c6ae64b1355b9b5d504233f271bc9?d=identicon)[jralph](/maintainers/jralph)

### Embed Badge

![Health badge](/badges/lablog-stringy/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[illuminate/pipeline

The Illuminate Pipeline package.

9348.3M268](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10533.5M997](/packages/illuminate-pagination)[illuminate/redis

The Illuminate Redis package.

8314.4M363](/packages/illuminate-redis)[illuminate/process

The Illuminate Process package.

44869.2k98](/packages/illuminate-process)[illuminate/cookie

The Illuminate Cookie package.

224.5M132](/packages/illuminate-cookie)

PHPackages © 2026

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