I'm creating a project that is going to be around for a long time, so I like the look of Symfony 2.3 LTS.
I did this in Composer, but it installed 2.4.2 instead:
php composer.phar create-project symfony/framework-standard-edition 2.3.12
I then checked the composer.json and saw:
"symfony/symfony": "~2.4",
I changed that to 2.3 and ran an update but all sorts of errors prevented me.
How do I install 2.3 LTS?
A simple mistake: you're adding 2.3.12 as the path to create the project in, not the version constraint. Try this command:
composer create-project symfony/framework-standard-edition /path/to/project 2.3.*
Related
i just installed laravel for the first time and got this error, i have reinstalled Composer many times but it doesn't work, maybe you guys can help me out
PHP version 8.2
i installed laravel global installer, but it shows symfony things error, i have reinstalled composer but it doesn't work
please see this url ( installation laravel)
first: install composer on OS (Linux , Windows or MAC)
If you have already installed Composer, you must be clear chache in composer:
php composer.phar clear-cache
or this command:
composer clear-cache
then Using installation via composer:
composer create-project laravel/laravel example-app
The fastest and simplest way of installing Laravel is via composer command. From the laravel docs (http://laravel.com/docs/quick), it shows that we can install it with this:
composer create-project laravel/laravel your-project-name --prefer-dist
But, when you run the above command, it will grab the latest version of Laravel. How can I control it if I want to install latest version of 4.0.x? Or, 4.1.x when 4.2 is out?
From the composer help create-project command
The create-project command creates a new project from a given
package into a new directory. If executed without params and in a
directory with a composer.json file it installs the
packages for the current project.
You can use this command to bootstrap new projects or setup a clean
version-controlled installation for developers of your project.
[version]
You can also specify the version with the package name using = or : as
separator.
To install unstable packages, either specify the version you want, or
use the --stability=dev (where dev can be one of RC,
beta, alpha or dev).
This command works:
composer create-project laravel/laravel=4.1.27 your-project-name --prefer-dist
This works with the * notation.
Try via Composer Create-Project
You may also install Laravel by issuing the Composer create-project command in your terminal:
composer create-project laravel/laravel {directory} "5.0.*" --prefer-dist
Have a look:
Laravel 4.2 Documentation
Syntax (Via Composer):
composer create-project laravel/laravel {directory} 4.2 --prefer-dist
Example:
composer create-project laravel/laravel my_laravel_dir 4.2
Where 4.2 is your version of laravel.
Note: It will take the latest version of Laravel automatically If you will not provide any version.
composer create-project laravel/laravel=4.1.27 your-project-name --prefer-dist
And then you probably need to install all of vendor packages, so
composer install
If you want to use a stable version of your preferred Laravel version of choice, use:
composer create-project --prefer-dist laravel/laravel project-name "5.5.*"
That will pick out the most recent or best update of version 5.5.* (5.5.28)
To install specific version of laravel try this & simply command on terminal
composer create-project --prefer-dist laravel/laravel:5.5.0 {dir-name}
Installing specific laravel version with composer create-project
composer global require laravel/installer
Then, if you want install specific version then just edit version values "6." , "5.8."
composer create-project --prefer-dist laravel/laravel Projectname "6.*"
Run Local Development Server
php artisan serve
I can't Install Laravel 6.0, when I run this command:
composer create-project laravel/laravel laravel_6.0
I want to install v6.0 but it comes with v5.8.17.
How can I download the latest version of laravel? My Php version is 7.2.10
You will need to make sure your server meets the following requirements:
PHP >= 7.2.0
BCMath PHP Extension
Ctype PHP Extension
JSON PHP Extension
Mbstring PHP Extension
OpenSSL PHP Extension
PDO PHP Extension
Tokenizer PHP Extension
XML PHP Extension
And than First, download the Laravel installer using Composer:
composer global require laravel/installer
Once installed, the laravel new command will create a fresh Laravel installation in the directory you specify.
Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal:
composer create-project --prefer-dist laravel/laravel blog
Or
composer create-project --prefer-dist laravel/laravel blog "6.0.*"
From today you can install laravel version 6 with this command:
composer create-project --prefer-dist laravel/laravel blog
I recently, updated all of my projects to laravel 6.0,
I'm using, Ubuntu 19.04
by following command it works for my system
composer create-project --prefer-dist laravel/laravel your-project-name
Here are some few ways to install laravel by specifying version
composer create-project laravel/laravel=6.0 your-project-name --prefer-dist
composer create-project --prefer-dist laravel/laravel:6.0 your-project-name
composer create-project --prefer-dist laravel/laravel your-project-name "6.*"
It's not loaded into Packagist as an official version yet. Therefore, you need to use the "dev-develop" version which contains the latest unstable commit from GitHub:
$ composer create-project laravel/laravel laravel_6.0 dev-develop
re setup the composer. Show php 7 version when installing.
Today I try to install specific laravel version with composer create-project laravel/laravel=5.1.8 your-project-name --prefer-dist, because some of the plugins have trouble with version 5.1.9 and above.
However, the installation fail and it says Could not find package laravel/laravel with version 5.1.8. How can I install it with composer?
you can do:
composer create-project laravel/laravel myproject --prefer-dist v5.1.8
To see available versions, you can visit its packagist page (lower right):
https://packagist.org/packages/laravel/framework
UPDATED:
There is no actually a tag for v5.1.8 for package laravel/laravel,
Your issue is the framework(core) of laravel..
What you can do to solve it is to edit your composer.json:
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.8"
},
And do composer update "laravel/framework"
A simple answer i can think of is
composer create-project laravel/laravel <app name> "5.1.*"
Just replace < app name > with your application name and you'll install laravel's 5.1 distribution.
Use the following command:
composer create-project laravel/laravel my_project 5.1.8
You can also specify a version and up, for example 5.1 and its patches, like so (recommended):
composer create-project laravel/laravel my_project 5.1.*
The fastest and simplest way of installing Laravel is via composer command. From the laravel docs (http://laravel.com/docs/quick), it shows that we can install it with this:
composer create-project laravel/laravel your-project-name --prefer-dist
But, when you run the above command, it will grab the latest version of Laravel. How can I control it if I want to install latest version of 4.0.x? Or, 4.1.x when 4.2 is out?
From the composer help create-project command
The create-project command creates a new project from a given
package into a new directory. If executed without params and in a
directory with a composer.json file it installs the
packages for the current project.
You can use this command to bootstrap new projects or setup a clean
version-controlled installation for developers of your project.
[version]
You can also specify the version with the package name using = or : as
separator.
To install unstable packages, either specify the version you want, or
use the --stability=dev (where dev can be one of RC,
beta, alpha or dev).
This command works:
composer create-project laravel/laravel=4.1.27 your-project-name --prefer-dist
This works with the * notation.
Try via Composer Create-Project
You may also install Laravel by issuing the Composer create-project command in your terminal:
composer create-project laravel/laravel {directory} "5.0.*" --prefer-dist
Have a look:
Laravel 4.2 Documentation
Syntax (Via Composer):
composer create-project laravel/laravel {directory} 4.2 --prefer-dist
Example:
composer create-project laravel/laravel my_laravel_dir 4.2
Where 4.2 is your version of laravel.
Note: It will take the latest version of Laravel automatically If you will not provide any version.
composer create-project laravel/laravel=4.1.27 your-project-name --prefer-dist
And then you probably need to install all of vendor packages, so
composer install
If you want to use a stable version of your preferred Laravel version of choice, use:
composer create-project --prefer-dist laravel/laravel project-name "5.5.*"
That will pick out the most recent or best update of version 5.5.* (5.5.28)
To install specific version of laravel try this & simply command on terminal
composer create-project --prefer-dist laravel/laravel:5.5.0 {dir-name}
Installing specific laravel version with composer create-project
composer global require laravel/installer
Then, if you want install specific version then just edit version values "6." , "5.8."
composer create-project --prefer-dist laravel/laravel Projectname "6.*"
Run Local Development Server
php artisan serve