GithubHelp home page GithubHelp logo

cebe / assetfree-yii2 Goto Github PK

View Code? Open in Web Editor NEW
49.0 8.0 4.0 56 KB

A composer package that allows you to install yii2 without composer-asset-plugin

Home Page: https://packagist.org/packages/cebe/assetfree-yii2

License: MIT License

PHP 100.00%
hacktoberfest

assetfree-yii2's Introduction

cebe/assetfree-yii2 composer package

A composer package that allows you to install yii2 without composer-asset-plugin.

How to use?

Just require cebe/assetfree-yii2 instead of yiisoft/yii2 in your composer.json.

Why?

Yii2 currently depends on Asset packages to make it really easy to create frontend applications as it directly provides Widgets and Javascript/CSS components out of the box. Therefore, the composer-asset-plugin is used which allows to manage frontend dependencies directly in composer.json.

Sometimes however, these frontend components are not needed, e.g. if you use Yii to create a Console Application, Background workers or a REST API. So if you do not want to install the composer-asset-plugin on your production servers because you do not need any asset functionality anyway you may use this package instead of requiring yiisoft/yii2 directly.

How does this work?

Magic: https://github.com/cebe/assetfree-yii2/blob/2.0.0/composer.json#L9-L14 :)

This package claims to "provide" the required asset packages which are only available when composer-asset-plugin is installed. In reallity no asset packages are installed, so this is only useful in cases where you do not need them.

assetfree-yii2's People

Contributors

cebe avatar sohelahmed7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

assetfree-yii2's Issues

consider a guide to using bower as alternative

Thanks for this repo! Great idea, I hate the fxp plugin because it always seems to bug when composer updates, and its also very slow.

Do you use bower instead? Are you able to give a quick-start guide to using bower to get the required assets, (including making sure they go into the right folders)?

Add support for Yii 2.0.8

I'm not sure how to do it exactly with a pull request (can I do a pull request for a tag, or a branch?), but could you add support for Yii 2.0.8?

You break the compatibility of fxp/composer-asset-plugin

@cebe,

First of all, thank you for your support of the Composer plugin Fxp Composer Asset Plugin.

But with your workaround on Packagist using the provide, you break the compatibility of the plugin.

Indeed, Composer first check packages on Packagist, and uses the VCS Repositories after. Now that you reference packages under the virtual vendor bower-asset in Packagist, Composer considers that the package exists on Packagist.

Please remove your Packagist references.

For more details, see fxpio/composer-asset-plugin#268 and #1.

Best regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.