2017 © Pedro Peláez
 

library phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

image

wbadrh/phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

  • Friday, October 27, 2017
  • by wbadrh
  • Repository
  • 1 Watchers
  • 0 Stars
  • 26 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP., (*1)

$ composer require wbadrh/phpackage-json

Example: https://github.com/wbadrh/phpackage-json-example, (*2)

require __DIR__ . '/../vendor/autoload.php';

$assets = new PHPackage(
    __DIR__ . '/../package.json',  // yarn package
    __DIR__ . '/../node_modules/', // yarn vendor
    [
        // custom css
        __DIR__ . '/src/css/*'     // user stylesheets
    ],
    [
        // custom js
        __DIR__ . '/src/js/*'      // user javascript
    ],
    [
        // exclude
        'index.js',
    ]
);

$assets->fonts(__DIR__ . '/fonts');
<link href="<?= $assets->css(__DIR__, '/css/bundle.min.css') ?>" rel="stylesheet">
<script src="<?= $assets->js(__DIR__, '/js/bundle.min.js') ?>"></script>

The Versions

27/10 2017

dev-master

9999999-dev https://github.com/wbadrh/phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

  Sources   Download

MIT

The Requires

 

css php javascript bundle minifier js performance minify productivity optimization stylesheet package.json speed pagespeed stylesheets optimalisation yarn bundle-javascript bundle-stylesheets bundle-js bundle-css bundle-fonts phpackage-json

27/10 2017

1.0.5

1.0.5.0 https://github.com/wbadrh/phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

  Sources   Download

MIT

The Requires

 

css php javascript bundle minifier js performance minify productivity optimization stylesheet package.json speed pagespeed stylesheets optimalisation yarn bundle-javascript bundle-stylesheets bundle-js bundle-css bundle-fonts phpackage-json

27/10 2017

1.0.4

1.0.4.0 https://github.com/wbadrh/phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

  Sources   Download

MIT

The Requires

 

css php javascript bundle minifier js performance minify productivity optimization stylesheet package.json speed pagespeed stylesheets optimalisation yarn bundle-javascript bundle-stylesheets bundle-js bundle-css bundle-fonts phpackage-json

27/10 2017

1.0.3

1.0.3.0 https://github.com/wbadrh/phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

  Sources   Download

MIT

The Requires

 

css php javascript bundle minifier js performance minify stylesheet package.json stylesheets yarn

27/10 2017

1.0.2

1.0.2.0 https://github.com/wbadrh/phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

  Sources   Download

MIT

The Requires

 

css php javascript bundle minifier js performance minify stylesheet package.json stylesheets yarn

13/08 2017

1.0.1

1.0.1.0 https://github.com/wbadrh/phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

  Sources   Download

MIT

The Requires

 

css php javascript bundle minifier js performance minify stylesheet package.json stylesheets yarn

03/08 2017

1.0.0

1.0.0.0 https://github.com/wbadrh/phpackage-json

Bundle Javascript & Stylesheets from package.json (Yarn) with PHP.

  Sources   Download

MIT

The Requires

 

css php javascript bundle minifier js performance minify stylesheet package.json stylesheets yarn