2017 © Pedro Peláez
 

library expressive-assets

Simple asset loading

image

rcm/expressive-assets

Simple asset loading

  • Wednesday, October 18, 2017
  • by reliv
  • Repository
  • 3 Watchers
  • 0 Stars
  • 777 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

THIS HAS BEEN DEPRICATED IN FAVOR OF https://github.com/reliv/serve-static.

Simple asset loading using Zend Expressive middleware, (*1)

Configuration

'routes' => [
    // Asset route name MUST be used as the key
    'expressive-assets.public' => [
        // YOUR ROUTE NAME
        'name' => 'expressive-assets.public',
        // Path MUST contain fileName route param
        'path' => '/expressive-assets/{fileName:.*}',
        'middleware' => \ExpressiveAssets\AssetController::class,
        'options' => [],
        'allowed_methods' => ['GET'],
        /* expressive asset config */
        'expressive-asset' => [
            // Directory where assets are publicly available
            'directory' => __DIR__ . '/../public',
            // File extension to response headers, 
            // If headers value is not supplied 
            // then \ExpressiveAssets\CommonHeaders will be used
            'headers' => [
                'css' => [
                    'content-type' => 'text/css'
                ],
                'html' => [
                    'content-type' => 'text/html'
                ],
                'js' => [
                    'content-type' => 'application/javascript'
                ],
            ]
        ]
    ],
],

The Versions

18/10 2017

dev-master

9999999-dev https://github.com/reliv/expressive-assets

Simple asset loading

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zend module expressive reliv

29/06 2017

0.2.0

0.2.0.0 https://github.com/reliv/expressive-assets

Simple asset loading

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zend module expressive reliv

08/12 2016

0.1.3

0.1.3.0 https://github.com/reliv/expressive-assets

Simple asset loading

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zend module expressive reliv

29/11 2016

0.1.2

0.1.2.0 https://github.com/reliv/expressive-assets

Simple asset loading

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zend module expressive reliv

29/11 2016

0.1.1

0.1.1.0 https://github.com/reliv/expressive-assets

Simple asset loading

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zend module expressive reliv

29/11 2016

0.1.0

0.1.0.0 https://github.com/reliv/expressive-assets

Simple asset loading

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

zend module expressive reliv