2

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?

2 Answers2

4

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

  • How you could run vendor/bin/phinx init. It throw me an error "'vendor' is not recognized as an internal or external command, operable program or batch file." – Čamo May 09 '16 at 12:12
  • So my problem is because Windows needs windows separator like vendor\bin\phinx init also without php. – Čamo May 09 '16 at 12:28
0

I had the same problem. Solved by :

  vendor/bin/phinx init 

note: withoud the php on the front please also note that for windows you will need to a different syntax:

  vendor\bin\phinx init
Denise Ignatova
  • 465
  • 4
  • 7