Download the PHP package yidas/yii2-composer-bower-skip without Composer

On this page you can find all versions of the php package yidas/yii2-composer-bower-skip. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-composer-bower-skip

Yii2 Composer Bower Skip


A Composer package that allows you to install or update Yii2 without Bower-Asset.

Latest Stable Version License Total Downloads Monthly Downloads

FEATURES

Bower packages are not original Packagist source from Composer, so it will cause error when you install or update Bower without a plugin (fxp/composer-asset-plugin or Asset-Packagist). After requiring this package, Bower packages will not be required or updated, which you will keep the current version of Bower or even no Bower in the project vendor.

If you are using Yii2 core Bower, the recommended way is using yidas/yii2-bower-asset which could install or update Bower for Yii2 without plugin.


INSTALLATION

1. Require Package

In Yii2 composer.json, require yidas/yii2-composer-bower-skip before yiisoft/yii2.

Example composer.json:

2. Remove Composer Asset-Packagist Repositories Optionally

If you are using the version 2.0.13 or higher of Yii, you may optional remove the repositories setting of composer.json to use original Composer repository.

Example segament to delete in composer.json :

After that, you can run composer update or composer install without handling Bower-Asset.


CREATE PROJECT

If you doesn't has Yii2 project yet, choose one of below ways to create:

Create Project via Composer

You can use Composer to create Yii2 project by using following package:

yidas/yii2-app-basic

yidas/yii2-app-advanced

These packages are Yii 2 Application Template with fixed Bower, which including yidas/yii2-bower-asset already.

Creating Project from Official Site

You could download Yii2 project from official Archive File, then manally install yii2-composer-bower-skip on it by following above instruction.


FAQ

Still Stuck when Composer Update

If you still get trouble with Bower after install this package, try to delete composer.lock file and make sure the asset plugin is disabled:

Keep Current Bower

If you still want to keep vendor\bower, you could set reverse Git-ignore for that folder:

For example, you may lose Bower vendor after the project is pushed to Git server then re-install Composer from the clone one.

If you want keep whole vendor ignored, you could take a look for yidas/yii2-bower-asset which support auto-install for Bower.


LIMITATIONS

This solution is for the situation that you won't require or update Bower asset of Yii2 for development such as using yii2-debug and yii2-gii.

If you are using Yii2 Bower, there are some smooth ways to require or update Bower for Yii2:

Yii2 Bower Asset Package

yidas/yii2-bower-asset goals to install Bower for Yii2 app by original Composer repository, and makes Bower and Composer separated.

This is the recommended way to handle Bower with Yii2.

Asset-Packagist Solution

Asset-Packagist is the new solution of Yii2, you may install Bower smoothly in Yii2 from 2.0.14 version until release.


All versions of yii2-composer-bower-skip with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yidas/yii2-composer-bower-skip contains the following files

Loading the files please wait ....