I have update only latest Font Awesome library using composer without update other packages in yii2.
Thanks in advance.
1st. Require version of library which you need to update:
php composer.phar require cinghie/yii2-fontawesome "2.1"
2nd. Update it via composer:
composer.phar update cinghie/yii2-fontawesome
Or you can just do 2nd if don't need specific version to update single library.
Odd question.
Because there is no FontAwesome installed with Yii 2 .. :)
However, if you want to install it, or update it, then you should use this package name:
bower-asset/fontawesome
You could also install a Yii 2 extension that gives you an asset bundle with fontawesome:
https://packagist.org/packages/rmrevin/yii2-fontawesome
I am curious:
What package are you using that requires fontawesome?
And why do you want to update the fontawesome package?
Related
I have a react-app webapp wrapped by an ionic-capacitor framework.
I already used a lot of cordova-plugins inside my code, like the phonegap-plugin-barcodescanner or the cordova-plugin-inappbrowser.
I understood that i can use them if I make:
npm install --save cordova-plugin-pluginName #ionic-native/plugin-name
then i could import them into my React environment with:
import {PluginName} from #ionic-native/plugin-name
and it's works like a magic!
The problem is:
when i need to use a cordova-plugin which requires configuration, it used to be cordova add plugin plugin-name --variable var=""
but in the react-capacitor environment i can't install the plugin with it's configuration! i should add it later somehow, via the androidManifest.xml or via the cordova:config.xml.
can someone help me please?
thanks a lot...
Ionic provides a tool for changing the ios/android configs using a separate file. It's called Trapeze. It does require a bit of extra configuration and an aditional build step but it will allow for the adding of these variables to the ios/android config.
i have been assigned to a new project with Cake PHP to do some modifications on it, the project already exists and i'm having trouble run it, i don't know how to run the project on my xamp local server, should i download cakePHP in the project( if so, how to do it ?) or there are some commands i should run to get the dependencies of CakePHP and run the application ( if so, what are these commands). thanks in advance.
be sure that your php version >= 5.6.0
you should firstly install composer https://getcomposer.org/download/
then create new project by composer read the manual https://book.cakephp.org/3.0/en/installation.html
Or
- download the full project of Cakephp 3.0 https://github.com/cakephp/cakephp/archive/master.zip
- unzip the archive in /xampp/htdocs/
if you haven't, install composer https://getcomposer.org/download/
git bash into the directory then you can composer update
and all you need to do is go to localhost/
I have this one
Redactor v10.0.9
I try this
php composer.phar require --prefer-dist vova07/yii2-imperavi-widget": "1.2.2
But i always get the same version v10.0.9
You should upgrade to the latest version of the widget, which at the time of writing is 1.2.10.
Just put "vova07/yii2-imperavi-widget": "^1.2.10" into your composer.json file. Putting the caret symbol before the version ensures that future non-breaking updates will be loaded automatically when you run composer update.
Recently I deployed some projects like trntv/yii2-starter-kit and so on.but all applications are publishing assets on '#vendor/bower' instead of'#vendor/bower/bower-asset'. I have read the question Yii2 Composer manage package in bower and bower-vendor and solved it . but I still feel confused about the directory vendor/bower/bower-asset.
What's the part does bower/bower-asset play in php application? it is not a composer package but many theme store in there. Furthermore, bower is a dependency management for javascript just like Composer for PHP , but how does it solve dependency for js package by PHP on this occasion that I have not install node.js environment?
The idea of Composer Asset Plugin is to download Bower / NPM packages and manage their dependencies without having Node JS, Bower and NPM installed (through PHP / Composer). Also it adds possibility to add JavaScript dependencies for PHP packages that use JavaScript libraries.
See for example yii2-bootstrap Yii2 extension (PHP) has a dependency on Bootstrap (JS + CSS):
"bower-asset/bootstrap": "3.3.* | 3.2.* | 3.1.*"
When you run composer install or composer update, all JS dependencies will be installed to vendor/bower folder.
This is built into the core, but very ambiguous, receives a lot of criticism and there are plans to remove it in 2.1.0 (as far as I remember, it was included before release of 2.0 even it was unstable). Unfortunately this is required and there is no normal way to disable it.
You can read more info on the extension's Github page.
As for folder name, it should be named bower, not bower-asset, if you installed everything correctly.
It's named like so automatically, make sure you have the latest version of plugin:
composer global require "fxp/composer-asset-plugin:~1.1.1"
I'd recommend to even switch to:
composer global require "fxp/composer-asset-plugin:*"
If you have problems or errors, execute:
composer global remove "fxp/composer-asset-plugin"
Then reinstall it again, delete vendor and composer.lock in your application folder and run:
composer install
I am creating a registration form, i want to add a google captcha to the form however i noticed that the package requires PHP 5.4 or greater and "ext-curl" and "ext-json" i have looked around to try and find out how to get these dependencies installed but i have found no solution, currently when i try adding the google captcha package to my composer.json and doing a composer.update i get an error then i have to take it out from my composer.jon file and re-run composer update to fix the error. I think it might have something to do with these 2 dependencies does anyone know how i can get them installed?
I use the inbuilt PHP server in Laravel on windows 7 platform.
Directly from easyphp administration, use test code:
<?php phpinfo();?>