aisasemi/sri
Composer 安装命令:
composer require aisasemi/sri
包简介
Laravel Subresource Integrity
README 文档
README
A small addon to add sri to your laravel application in a simple way.
Installation
Via Composer
$ composer require aisasemi/sri
Usage
There are 2 methods that we can use.
- get
- php
$integrity = $sri->get('path/to/asset'); - blade
@sri('path/to/asset');
- php
- 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');
- php
Change log
Please see the changelog for more information on what has changed recently.
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email author email instead of using the issue tracker.
Credits
License
license. Please see the license file for more information.
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-25