I am still investigating how to use Composer. I am using Windows 10 with wamp-5.6.28-1.

I tried to to use ttaylorr/emojify from Packagist as a practice example. When I called up the command prompt and entered ..>composer require ttaylorr/emojify I had a message saying " Could not find package ttaylorr/emojify
at any version for your minimum stabilty (stable). Check the package spelling or your minimum-stability"

The spelling is correct. How do I check MY minimum-stability ? I assume this must be some setting in my composer.phar file, but I can't spot what I should be doing.

I then looked again in the Packagist data and there is another option listed for the command prompt : ..>composer require ttaylorr/emojify dev-master This gave a long list of bad things saying among other things that it could not find the package and that it did not know what git was.

I can't really see what I could have done wrong. Follow the yellow brick road... ?

    Composer Documentation says :

    "minimum-stability (root-only)#

    This defines the default behavior for filtering packages by stability. This defaults to stable, so if you rely on a dev package, you should specify it in your file to avoid surprises."

    I read all this and it is what I am expecting (in general terms) but which "your file" are they referring to ? Can't be .json because at the point the error appears the .json file has not been fetched from the package source.

      I don't know what messages you got, but by not having git installed I get

      You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
      ./composer.json has been created
      Loading composer repositories with package information
      Updating dependencies (including require-dev)
        - Installing ttaylorr/emojify (dev-master bad9ab9)
          Cloning bad9ab9bc12d119c9a8557ad8d727569901927a2
          Failed to download ttaylorr/emojify from source: Failed to clone https://github.com/ttaylorr/emojify.git, git was not found, check that it is installed and in your PATH env.
      
      'git' is not recognized as an internal or external command,
      operable program or batch file.
      
      Now trying to download from dist
        - Installing ttaylorr/emojify (dev-master bad9ab9)
          Downloading: 100%
      
      Writing lock file
      Generating autoload files
      

      Which indicates a successful download and install.

        Write a Reply...