User Command Line

Installation

Requirements

Documentation

In order for the hproj:create-user (or hproj:create:user as alias) command to work correctly
a small update in your application code is required.

Because we work with users here, there has to be some user entity in your application. This entity
must implement the UserEntityInterface. That´s all.

You have many options how to do this. You can implement the entire interface yourself if your need some custom logic
but this library contains some bits of pieces of code among which there are UserMethods and UserProperties
both of which are combined in one single UserTrait. These might help you with the implementation.

If you need more info on how to use the above command, use your Symfony Console
in your command line the way that you are used to (in Nette it is php www/index.php)
and type help hproj:create-user (eg: php www/index.php help hproj:create-user).