Download the PHP package pierstoval/character-manager without Composer

On this page you can find all versions of the php package pierstoval/character-manager. 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 character-manager

Latest Stable Version Build Status Coverage Status Scrutinizer Code Quality SensioLabsInsight License

Character manager bundle

This bundle is here to provide a customizable skeleton to create characters based on a list of actions representing each step of character creation.

You can configure your steps both from configuration and services.

Setup

Character generation

Step actions

To generate characters, you need what are called Step Action classes.

One generation step = one class.

Each class must implement StepActionInterface, but you can also extend the abstract class AbstractStepAction which implements the interface and adds cool logic, so you just have to implement the execute() method.

You can define it at a simple class like this:

You can also refer to an already existing service:

💯 Note: You should know that all action classes that are not set as service will be defined as service, autowired and set private, because it is mandatory for the ActionRegistry to have them as services.
However, your services will be untouched, to keep consistency with your own logic.

💠 Magic

Important things about steps

Step configuration reference:

AbstractStepAction class

This is an example of a basic action:

What is injected in the AbstractStepAction class

When you have defined all your character managers configurations, the StepsPass will process them and execute certain actions:

And the abstract class has cool new methods, too.

Constructor

First, you must know that the AbstractStepAction has no constructor.

Then, you're free to have your own constructor without being forced to rely on the parent's logic, and inject all your necessary services and parameters in the constructor, via autowiring.

The abstract class only adds some nice stuff to use (and if someone don't extend it, send me a message, I'd like to hear why you don't want to extend it), and this cool logic resides in other methods.

So you're free to implement your own constructor, especially if you define your action as a service

Injected services

If you define the step action as a service and extend the abstract class, you will have access to four services:

Most of the time, you don't need many other things, but if you need other things, just add the arguments: or calls: options to your service definition.

The cool methods of the AbstractStepAction class

The abstract class adds cool methods to manage your steps:

Roadmap

A list of "todos":

License

The project is published under MIT license. See the license file for more information.


All versions of character-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
symfony/config Version ^6.2|^7.1
symfony/dependency-injection Version ^6.2|^7.1
symfony/framework-bundle Version ^6.2|^7.1
symfony/http-kernel Version ^6.2|^7.1
symfony/http-foundation Version ^6.2|^7.1
symfony/routing Version ^6.2|^7.1
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 pierstoval/character-manager contains the following files

Loading the files please wait ....