sdevore / cakephp-scid-plugin

Plugin of helpers and other tools I commonly use in CakePHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scid plugin for CakePHP

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require sdevore/cakephp-scid-plugin

So this plugin is expecting to install some npm packages using the Asset Packagist a tool for installing npm and brower packages with composer. In order to do this you need to let it know where the repository of those mapped packages are add the following to your composer.json file

"repositories": [
    {
        "type": "composer",
        "url": "https://asset-packagist.org"
    }
]

Then to ensure that the plugin finds those npm and brower assets in the expected location please add the following to the composer files as well. The plugin uses []oomphinc/composer-installers-extender](https://github.com/oomphinc/composer-installers-extender) to install them inside the webroot.

"extra": {
    "installer-types": [
      "bower-asset",
      "npm-asset"
    ],
    "installer-paths": {
      "webroot/assets/{$vendor}/{$name}/": [
        "type:bower-asset",
        "type:npm-asset"
      ]
    }
  },

note that the webroot/assets directory can be added to your .gitignore file

About

Plugin of helpers and other tools I commonly use in CakePHP

License:MIT License


Languages

Language:JavaScript 61.8%Language:PHP 19.5%Language:SCSS 9.2%Language:CSS 9.0%Language:Twig 0.5%Language:Sass 0.0%