aisasemi /
Laravel 子资源完整性
v1.0.0
2020-10-25 02:53 UTC
Requires
- illuminate/support: ~7|~8
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
README
一个小的插件,可以简单地向您的 Laravel 应用程序添加 sri。
安装
通过 Composer
$ composer require aisasemi/sri
使用方法
我们可以使用两种方法。
- 获取
- 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
变更日志
请参阅变更日志,了解最近的变化。
贡献
请参阅contributing.md以获取详细信息和待办事项列表。
安全性
如果您发现任何与安全相关的问题,请通过电子邮件联系作者,而不是使用问题跟踪器。
致谢
许可证
许可证。请参阅许可证文件以获取更多信息。