Download the PHP package heavenproject/user-command-line without Composer

On this page you can find all versions of the php package heavenproject/user-command-line. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package user-command-line

User Command Line

Manage users via Symfony Console and Doctrine ORM on command line.

Installation

composer require heavenproject/user-command-line

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).

Example 1

Example 2

Example 3

Example 4

You can of course add more properties and methods in your entity if you wish.

Config

Register the UserCommandLineExtension in your application neon config and to this extension provide the targetEntity which is your updated user entity (class name together with namespace).

License

This source code is free software available under the MIT license.


All versions of user-command-line with dependencies

PHP Build Version
Package Version
Requires heavenproject/utils Version ^1.0
kdyby/console Version ^2.4
kdyby/doctrine Version ^2.3 | ^3.0
nette/di Version ^2.3
tracy/tracy Version ^2.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package heavenproject/user-command-line contains the following files

Loading the files please wait ....