how to install illuminate/mail via composer in Lumen - laravel

A setting mail-in on lumen project, I should install illuminate\mail via composer, but show me an error:
Your requirements could not be resolved to an installable set of packages

You can install through composer using the following command in the terminal:
composer require illuminate/mail
Make sure you are in the project directory.

Related

Composer install VS composer install --dev

Is there any differences between "composer install" and "composer install --dev"?
I ran these two commands and get the same packages installed.
As you can read in the documentation, leaving it out and using --dev performs the same action:
--dev: Install packages listed in require-dev (this is the default behavior).

How to install lumen 5.8 using Composer

My source project contains laravel/lumen 5.8 and I cloned the project recently and installed composer and when I try to install lumen in this way
composer global require "laravel/lumen-installer"
I got the latest one . How can I get Laravel/lumen 5.8 using composer or any other methods?
You can create project as
composer create-project --prefer-dist laravel/lumen=5.8 myproject
Go to your app and then find composer.json and add this line:
"laravel/lumen-framework": "5.8.*"
then run
composer update

Update global composer on Ubuntu 16.04

I'm trying to update the global composer but I can't do it.
I think I can do composer init and then make php composer.phar update but I prefer to update the global composer. If I run the latter, I get:
composer could not find a composer.json file
How can I make it? I try to find the composer files of installation and I can't find them and also I try to find information using composer but nothing.

How to get the required version of the Composer Plugin API?

It is necessary to do the following:
composer self-update
composer global require "fxp/composer-asset-plugin:*"
But after executing the composer self-update, an error pops up:
The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("~1.0.0-alpha10") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
My current version of Composer is 1.4.2
For the same reason, the following commands do not work:
composer global require "fxp/composer-asset-plugin:*"
An error pops up:
The "hirak/prestissimo" plugin was skipped because it requires a Plugin API version ("~1.0.0-alpha10") that does not match your Composer installation ("1.1.0"). You may need to run composer update with the "--no-plugins" option.
How to get the required version of the Composer Plugin API?
You just need to update hirak/prestissimo:
composer global update hirak/prestissimo --no-plugins

Swiftmailer Error Composer Install

i am installing composer dependencies by 'composer install'.
it download bunch of packages but after swiftmailer it gives me error
[UnexpectedValueException]
'C:\Users\DELL\Downloads\laravel-4\vendor/swiftmailer/swiftmailer/72e34d......54c82f.1' is not a zip archive.
what does it mean?
For me this problem happened due to the order composer was installing the files.
The work around that worked for me was to go into \vendor\composer\autoload_real.php and comment out the following line
require $vendorDir . '/swiftmailer/swiftmailer/lib/swift_required.php';
and then run composer again
Running composer install with the --prefer-source option, fixed this problem for me.

Resources