phpwindowscmdwampphinx

Installing Phinx on Wamp Server


I want to use "Phinx" in my project using wamp server.I was able to install with cmd:

Following instructions at: http://docs.phinx.org/en/latest/install.html

composer require robmorgan/phinx 

But when I run the command:

php vendor/bin/phinx init

The output is:

enter image description here

And after that there is no installed phinx.yml file on my local directory

This is the first time facing a problem while installing a package..Is there any sollutions/suggestions?


Solution

  • I solved the problem by using the command:

    vendor/bin/phinx init
    

    not:

    php vendor/bin/phinx init
    

    Also there is same issue with

    php vendor/bin/phinx create MyFirstMigration 
    

    and you need to use that command

    enter image description here