PHPackages                             aisasemi/sri - 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. aisasemi/sri

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

aisasemi/sri
============

Laravel Subresource Integrity

v1.0.0(5y ago)014MITPHP

Since Oct 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Aisasemi/SRI)[ Packagist](https://packagist.org/packages/aisasemi/sri)[ Docs](https://github.com/aisasemi/sri)[ RSS](/packages/aisasemi-sri/feed)WikiDiscussions main Synced 4w ago

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

SRI
===

[](#sri)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2f8296591b88ceaa9a054ba00790839fe7baa51ad813b25e14b6a388f25bae4e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6169736173656d692f7372692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aisasemi/sri)[![Total Downloads](https://camo.githubusercontent.com/229890dd5a9b2cecf0158af6b331629f3f65b5c809b9eed8ac524e81d87ddba1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6169736173656d692f7372692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aisasemi/sri)[![Build Status](https://camo.githubusercontent.com/8e121b3bc53d1c43fd85949281ef30305b534b25bcf407b127c64680a19ea5cb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6169736173656d692f7372692f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/aisasemi/sri)[![StyleCI](https://camo.githubusercontent.com/cb13a877afd1dbe223c631789c3f922d3ace958fdb334a9cce9b26afefbc2ebd/68747470733a2f2f7374796c6563692e696f2f7265706f732f31323334353637382f736869656c64)](https://styleci.io/repos/12345678)

A small addon to add sri to your laravel application in a simple way.

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

[](#installation)

Via Composer

```
$ composer require aisasemi/sri
```

Usage
-----

[](#usage)

There are 2 methods that we can use.

- get
    - php ```
        $integrity = $sri->get('path/to/asset');

        ```
    - blade ```
        @sri('path/to/asset');

        ```
- html
    - php ```
        $htmltag = $sri->html('path/to/asset');
        $htmltag = $sri->html('path/to/asset', 'anonymous');

        ```
    - blade ```
        @srihtml('path/to/asset');
        @srihtml('path/to/asset', 'anonymous');

        ```

Change log
----------

[](#change-log)

Please see the [changelog](changelog.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Security
--------

[](#security)

If you discover any security related issues, please email author email instead of using the issue tracker.

Credits
-------

[](#credits)

- [author name](https://github.com/aisasemi)
- [All Contributors](../../contributors)

License
-------

[](#license)

license. Please see the [license file](license.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2022d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1142289?v=4)[Jonatan Gomez Naranjo](/maintainers/Aisasemi)[@Aisasemi](https://github.com/Aisasemi)

---

Top Contributors

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

---

Tags

laravelsri

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aisasemi-sri/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

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

14.9k123.0M680](/packages/barryvdh-laravel-ide-helper)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[nedwors/navigator

A Laravel package to ease defining navigation menus

433.1k](/packages/nedwors-navigator)[xefi/faker-php-laravel

Faker php integration with laravel

1915.1k](/packages/xefi-faker-php-laravel)[dcblogdev/laravel-junie

Install pre-configured guides for Jetbrains Junie

392.5k](/packages/dcblogdev-laravel-junie)

PHPackages © 2026

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