Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Html5Shiv Laravel Package

apnet/html5shiv

View on GitHub
Deep Wiki
Context7

Html5Shiv Asset Importer

Installation

Add requirements to composer.json:

{
  "require" : {
    "apnet/html5shiv" : "~3.7"
  }
}

Configurations

Register ApnetAsseticImporterBundle bundle in the AppKernel.php file

// ...other bundles ...
$bundles[] = new Apnet\AsseticImporterBundle\ApnetAsseticImporterBundle();

Add Html5Shiv importer to services.yml

services:
    apnet.assetic.importer.html5shiv:
        parent: assetic.importer_path
        arguments:
            - %kernel.root_dir%/../vendor/apnet/html5shiv/app/Resources/assets/dist
            - html5shiv
        tags:
            - { name: apnet.assetic.config_mapper }

Twig

To include Html5Shiv into Twig template use imported_asset function:

<!--[if lt IE 9]><script src="{{ imported_asset('html5shiv/html5shiv.min.js') }}"></script><![endif]-->

or/and

<!--[if lt IE 9]><script src="{{ imported_asset('html5shiv/html5shiv-print.min.js') }}"></script><![endif]-->
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
yandex/translate-api
voku/simple_html_dom
league/flysystem-vfs
bkwld/upchuck
filament/spatie-laravel-tags-plugin
capell-app/block-library
axium/identity
cetria/laravel-dummy-models
cetria/reflection-helper
agropredict/sso-auth-bundle
evolvestudio/spam-protection
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php