Skip to content
#

Composer

composer logo

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and manage them for you.

Here are 3,510 public repositories matching this topic...

Dropa
Dropa commented Sep 24, 2019

So if you happen to insert invalid version string when requiring package, it will still write it into composer.json and nothing works after that. So for example; composer require phpunit/phpunit:"8.3.3 as ^8.3"

My composer.json:

{
    "require": {
        "phpunit/phpunit": "8.3.3 as ^8.3"
    }
}

Output of composer diagnose:

$ composer diagnose
        
laravel-zero
stefkes
stefkes commented Mar 19, 2020

Installation of Laravel Zero with the command below

laravel-zero new TestApp

Results in output

Writing lock file
Generating optimized autoload files
> @php application app:rename
Renaming the application...

 What is your application name?:
 >

  Aborted.


Script @php application app:rename handling the post-create-project-cmd event returned with error code 1
Applicati
jrfnl
jrfnl commented Jul 11, 2020

As per my comments in #1162:

  • Deprecated features should be a warning
  • Removed features should be an error
  • New features should be an error
  • For the few things which don't fall in the above categories: whether it is an error/warning should depend on how PHP handles the issue, i.e. does it cause a PHP parse/fatal error or a notice or warning to be thrown ?

Similarly for the error

Created by Nils Adermann, Jordi Boggiano

Released March 1, 2012

Organization
composer
Website
getcomposer.org
Wikipedia
Wikipedia

Related Topics

package-manager php
You can’t perform that action at this time.