Questions tagged as 'composer'

1
answer

Problems in configuring Composer with XAMPP in Windows environment

Installing the composer on windows has given me some work. I have some doubts: The Composer installer on Windows prompts you to enter the location of php.exe , and installs it there. After that I ran the commands on the console my co...
asked by 26.02.2015 / 01:55
6
answers

Error installing Composer on Project in Laravel 4

I'm starting in the Laravel world and I'm having a problem running the composer install on the project. When running the command, it shows the following error: D:\htdocs\cpi2>composer install Loading composer repositories with packag...
asked by 09.01.2014 / 13:24
1
answer

What is the difference between "dependencies" and "devDependencies"?

What's the difference between saving a component like dependencies or devDependencies in bower , npm , composer and others that use this structure?     
asked by 07.11.2016 / 00:51
1
answer

Simulate another environment by using the 'composer update' command

I have a Symfony2 project with dependencies managed by composer , with their composer.json and composer.lock files synchronized between my local machine and the production server through git . It is known that...
asked by 15.12.2013 / 01:18
1
answer

Difference between laravel new project and composer create-project commands

What is the difference between the laravel new nome-projeto and composer create-project laravel/laravel nome-projeto --prefer-dist ? In both cases the result is the same but in the case of the composer path, the project folder ta...
asked by 13.04.2016 / 13:36
3
answers

How to install Composer globally in linux?

Generally, when I install Composer, I usually do this: curl -sS https://getcomposer.org/installer | php It downloads a file called composer.phar . But then I have to keep putting the folder path all the time I'm going to execute....
asked by 16.03.2016 / 15:26
2
answers

What is the difference between "require" and "require-dev"?

In Composer , Grunt for example, it has require and require-dev . My question is what's the difference between them? Example phpBB "require": { "php": ">=5.3.3,<7.0", "lusitanian/oauth": "0.2.*", "symfony...
asked by 23.05.2016 / 17:11
1
answer

What is a .lock file?

I'm using git to version a project and I noticed when checking for modifications that some .json files have a file with the same name but with different extensions and content. Example: composer.lock , yarn.lock . What are they? What...
asked by 08.02.2017 / 00:36
1
answer

How to make a composer package available? [duplicate]

The json below is part of the composer.json file of a package I created: { "name": "libspkgs/utils", "type": "library", "description": "Descrição aqui.", "keywords": ["key1", "key2"], "homepage": "https://endereco.com",...
asked by 15.11.2016 / 02:22
2
answers

What is the difference between the prefer-dist and prefer-source options in Composer?

In Composer, when we are going to install the library, we can add as options the argument --prefer-source or --prefer-dist . I would like to know what each one does and / or if there is a difference between the two. Example...
asked by 22.05.2018 / 20:42