PHPackages                             i3bepb/laravel-crop-str-blade-directive - 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. i3bepb/laravel-crop-str-blade-directive

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

i3bepb/laravel-crop-str-blade-directive
=======================================

Crop str blade directive

1.0.1(3y ago)015MITPHPPHP ^7.4 || ^8.0 || ^8.1 || ^8.2

Since Mar 2Pushed 3y ago1 watchersCompare

[ Source](https://github.com/i3bepb/laravel-crop-str-blade-directive)[ Packagist](https://packagist.org/packages/i3bepb/laravel-crop-str-blade-directive)[ RSS](/packages/i3bepb-laravel-crop-str-blade-directive/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (5)Versions (3)Used By (0)

laravel-crop-str-blade-directive
================================

[](#laravel-crop-str-blade-directive)

Crop str blade directive

Install
-------

[](#install)

```
composer require i3bepb/laravel-crop-str-blade-directive

```

Support Policy
--------------

[](#support-policy)

Package VersionLaravel Version1918not support&lt;=7How use
-------

[](#how-use)

#### With variable

[](#with-variable)

For example, there is a $formatted variable with a text of more than 100 bytes, you can crop it using the directive

```
As you can see @crop($formatted, 90)
```

#### With string

[](#with-string)

Or an example with string

```
@crop('Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu', 90)
```

Result

```
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor...
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

1220d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/57417a68f3fb9636dcb2e98d271ee278b29ca8f329c9e4070193602d2f4df7c0?d=identicon)[i3bepb](/maintainers/i3bepb)

---

Top Contributors

[![i3bepb](https://avatars.githubusercontent.com/u/1553797?v=4)](https://github.com/i3bepb "i3bepb (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/i3bepb-laravel-crop-str-blade-directive/health.svg)

```
[![Health](https://phpackages.com/badges/i3bepb-laravel-crop-str-blade-directive/health.svg)](https://phpackages.com/packages/i3bepb-laravel-crop-str-blade-directive)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M375](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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