I’m getting error “Class ‘Predis\Client’ not found” in Laravel 5.2

First download the REDIS to your system (if you haven’t already installed it). Go to the folder where you have downloaded the redis and run this command: cd your-redis-folder-name make Go to your project directory and install composer: composer require predis/predis Go to your .env file and add Queue driver: QUEUE_DRIVER=redis use Mail::queue() to send … Read more

How to install Laravel via Laravel Installer on Windows?

The PATH for Windows: I’ve found the location where composer stores the Vendor files. So instead of ~/.composer/vendor/bin, on Windows the following path should be used: C:\Users\<COMPUTER NAME>\AppData\Roaming\Composer\vendor\bin How to install the Laravel Installer: ======= I assume you have php and composer in your PATH already. First of all install the Laravel Installer. Open a … Read more

Laravel 5 Installation in Ubuntu: laravel command not found [duplicate]

Got fixed after setting path for composer vendors.So the correct step which worked is, Download laravel installer: composer global require “laravel/installer=~1.1″ Setup PATH: export PATH=”~/.composer/vendor/bin:$PATH” Then run command : laravel new project-name or sudo laravel new project-name For mac, echo ‘export PATH=”$HOME/.composer/vendor/bin:$PATH”‘ > ~/.bashrc source ~/.bashrc Ubuntu 16.04 with latest laravel installer Install composer if … Read more

Cannot update yii2 via composer bower-asset/jquery could not be found

Finally fixed it, just followed the steps on the UPGRADE.md doc If you are using Composer to upgrade Yii, you should run the following command first (once for all) to install the composer-asset-plugin: composer global require “fxp/composer-asset-plugin:^1.2.0” (See http://www.yiiframework.com/doc-2.0/guide-start-installation.html#installing-from-composer for latest version.) You may also need to add the following code to your project’s composer.json … Read more

How to use phpunit installed from composer?

If you followed the documentation, you have set the phpunit/phpunit dependency as a ‘dev-dependency’. If you don’t have composer, you need to install it first. This is explained in the documentation: Installation *nix or Installation Windows. If you already installed composer, it is a good practise to update composer to the latest version by running … Read more

Composer – The requested package exists as but these are rejected by your constraint

The version constraint “1.0” is interpreted internally as “1.0.0.0-stable” version. But the only version available is: antoineb1/smoney_bundle[dev-master]. So you could change the specified version to either one of the following depending on what version is suitable for you: 1.0.* (which is seen by composer as >=1.0.0.0-dev <1.1.0.0-dev — probably won’t work because there obviously aren’t … Read more

Running composer install within a Dockerfile

This took a lot of digging for someone new to Docker 🙂 Thanks to @iurii-drozdov for pointing me in the right direction with the comment about the docker-compose.yml. In my docker-compose.yml, I was mounting my host working dir into /var/www/html. This happened after the build. So composer ran the install, installed all the dependencies correctly … Read more