vitalibr / laravel5-exporter

MySQL Workbench Exporter for Laravel 5.0
MIT License
16 stars 4 forks source link

No formatters found or Unknown option laravel5-exporter. #3

Open emahuni opened 8 years ago

emahuni commented 8 years ago

I am not sure how this is supposed to work, but according to what is written in the readme; it's not working.

I installed this package using composer as instructed and noticed that it had also installed the workbench exporter. then ran vendor\bin\mysql-workbench-schema-export --list-exporter from the installation root folder. and got: Supported exporter: ERROR: No formatters found. Formatters are separate projects which need to be installed via composer. You can find all formatters at https://github.com/mysql-workbench-schema-exporter. Example: php composer.phar require --dev mysql-workbench-schema-exporter/doctrine2-exporter

Then I tried the above example and got worse error...

I then tried (after copying test.mwb to root installation folder): vendor\bin\mysql-workbench-schema-export --export=vitalibr/laravel5-exporter test.mwb ./generated

and it spit another error: Error: Unknown formatter "vitalibr/laravel5-exporter".

Can you please write a better usage example and correct me on my mistakes if this works at all.

I am using php 7.0.1 and latest composer version at the time of writting. But I don't see how they could be affecting the code.

th3d0g commented 7 years ago

Also having this issue.

Managed to get it working by copying the 'laravel5-exporter' folder from '/vendor/vitalibr/' into '/vendor/mysql-workbench-schema-exporter'.

xtecox commented 7 years ago

Did the same as @th3d0g and worked !

alexweissman commented 7 years ago

A pity that no one seems to be maintaining this package!

oilop9000 commented 7 years ago

Thanks a lot it worked like a charm