PHPackages                             hofmannsven/laravel-modernizr-command - 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. [CLI &amp; Console](/categories/cli)
4. /
5. hofmannsven/laravel-modernizr-command

ActiveLibrary[CLI &amp; Console](/categories/cli)

hofmannsven/laravel-modernizr-command
=====================================

Laravel artisan console command to generate custom Modernizr builds.

0.6.4(4y ago)02921[1 PRs](https://github.com/hofmannsven/laravel-modernizr-command/pulls)MITPHPPHP ^7.3

Since Apr 3Pushed 3y ago2 watchersCompare

[ Source](https://github.com/hofmannsven/laravel-modernizr-command)[ Packagist](https://packagist.org/packages/hofmannsven/laravel-modernizr-command)[ Docs](https://github.com/hofmannsven/laravel-modernizr-command)[ RSS](/packages/hofmannsven-laravel-modernizr-command/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (4)Versions (15)Used By (0)

Laravel Modernizr Command
=========================

[](#laravel-modernizr-command)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6bd89f2a21becac821d32d17af5c9e3037d45f97e5a64455c17e8f71d54eeca6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f686f666d616e6e7376656e2f6c61726176656c2d6d6f6465726e697a722d636f6d6d616e642e7376673f6c6162656c436f6c6f723d32333265346126636f6c6f723d353535393762267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/hofmannsven/laravel-modernizr-command)[![Build Status](https://camo.githubusercontent.com/4af5353d72ea9644862297cb6e7588e049df1e074a4fc84d8eabfbfecdf8e9d7/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f686f666d616e6e7376656e2f6c61726176656c2d6d6f6465726e697a722d636f6d6d616e642f6d61737465722e7376673f6c6162656c436f6c6f723d32333265346126636f6c6f723d353535393762267374796c653d666f722d7468652d6261646765)](https://travis-ci.org/hofmannsven/laravel-modernizr-command)[![GitHub license](https://camo.githubusercontent.com/13dbb1de2f9b7c6768be5f91058ecf29b01087a6a7589f0f72bf2e1bf189826f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f686f666d616e6e7376656e2f6c61726176656c2d6d6f6465726e697a722d636f6d6d616e642e7376673f6c6162656c436f6c6f723d32333265346126636f6c6f723d353535393762267374796c653d666f722d7468652d6261646765)](https://raw.githubusercontent.com/hofmannsven/laravel-modernizr-command/master/LICENSE.md)

Laravel artisan command to generate custom Modernizr builds.

[Modernizr](https://modernizr.com/) is a JavaScript library that detects HTML5 and CSS3 features in the user's browser.

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

[](#installation)

You can install the package via Composer:

```
composer require --dev hofmannsven/laravel-modernizr-command
```

### Install Modernizr

[](#install-modernizr)

Require Modernizr as a dependency in your `package.json` file:

```
npm i modernizr --save
```

### Publish the config files

[](#publish-the-config-files)

Publish both package config files (`config.php` and `modernizr.json`):

```
php artisan vendor:publish --provider="Hofmannsven\Modernizr\ModernizrServiceProvider"
```

### Customize the config files

[](#customize-the-config-files)

Example `modernizr.json` config file for SVG feature detection:

```
{
  "feature-detects": [
    "svg",
    "svg/asimg",
    "svg/clippaths",
    "svg/filters",
    "svg/foreignobject",
    "svg/inline",
    "svg/smil"
  ]
}
```

See Modernizr's [`config-all.json`](https://github.com/Modernizr/Modernizr/blob/master/lib/config-all.json) file for all detectable features.

Usage
-----

[](#usage)

Generate your custom Modernizr build based on your `config.php` and `modernizr.json` config files:

```
php artisan modernizr:generate
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please read the [changelog](https://github.com/hofmannsven/laravel-modernizr-command/blob/master/CHANGELOG.md) for more information about what has changed recently.

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

[](#contributing)

Please read the [contribution guidelines](https://github.com/hofmannsven/laravel-modernizr-command/blob/master/.github/CONTRIBUTING.md) for details.

Support
-------

[](#support)

Always feel free to [raise an issue](https://github.com/hofmannsven/laravel-modernizr-command/issues) on GitHub.

Security
--------

[](#security)

If you discover a security issue, please contact me directly. My GPG fingerprint/key is available on [Keybase](https://keybase.io/hofmannsven).

Credits
-------

[](#credits)

- [Sven Hofmann](https://github.com/hofmannsven)
- [All Contributors](https://github.com/hofmannsven/laravel-modernizr-command/graphs/contributors)

License
-------

[](#license)

MIT License (MIT). Please read the [license](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.7% 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 ~68 days

Total

13

Last Release

1777d ago

PHP version history (3 changes)0.1.0PHP ^7.1

0.3.0PHP ^7.2

0.6.0PHP ^7.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d159c589f4aa3bb791be2794af8a1c877495e2e1f429355f1cee80b9ab76476?d=identicon)[hofmannsven](/maintainers/hofmannsven)

---

Top Contributors

[![hofmannsven](https://avatars.githubusercontent.com/u/1214387?v=4)](https://github.com/hofmannsven "hofmannsven (39 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (2 commits)")

---

Tags

laravellaravel-packagemodernizrlaravelartisanmodernizrconsole command

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/hofmannsven-laravel-modernizr-command/health.svg)

```
[![Health](https://phpackages.com/badges/hofmannsven-laravel-modernizr-command/health.svg)](https://phpackages.com/packages/hofmannsven-laravel-modernizr-command)
```

###  Alternatives

[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815412.0k48](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76125.4k1](/packages/rahul900day-laravel-console-spinner)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1248.2k1](/packages/socialengine-sniffer-rules)[mwguerra/web-terminal

A web-based terminal component for Filament/Laravel with command whitelisting and multiple connection types

251.1k](/packages/mwguerra-web-terminal)[sunaoka/laravel-facade-generator

Provide command line generation of facade layer files.

171.9k](/packages/sunaoka-laravel-facade-generator)

PHPackages © 2026

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