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 3d 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 43% 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

4451d 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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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