A PHP library to read the Webpack statistics file.
Webpack-stats can easily be installed using Composer:
composer require freshheads/webpack-stats
We've create a Symfony Bundle that uses this library to include assets that are build by Webpack in our templates. This bundle is called the FHWebpackBundle.
This library works with PHP 5.6.0 and up.