Download the PHP package bertprod/m20onlinecore without Composer

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

m20online-core

This is a library package to help you generate and manage Microlite20 purest-essence characters sheets.

Motivation

I am a tabletop RPG player and game master. A few times ago I discovered Microlite20 ruleset which is simple, efficient and can be use to any kind of game (D&D, Call of Cthulhu, Paranoïa...). Then I decided to create a project to help me generate character sheet. This package is a part of this project and contain the core code to generate a character.

Installation

You can install it through composer:

composer require bertprod/m20onlinecore

System requirements

PHP >= 7.2 but latest stable version is highly recommanded

Usage

Let's say you want to create a Dwarf fighter:

<?php
use M20OnlineCore\Builder\CharacterBuilder;
use M20OnlineCore\Entity\CharacterEntity;
use M20OnlineCore\Job\FighterJob;
use M20OnlineCore\Race\DwarfRace;

$characterBuilder = new CharacterBuilder();

$characterEntity = $characterBuilder->build(DwarfRace::NAME, FighterJob::NAME);

It will return an instance of M20OnlineCore\Entity\CharacterEntity with which you'll be able to access to your character data.

By example, if you want the value of strength stat:

<?php
$strengh = $characterEntity->get(CharacterEntity::STAT_STR);

All available fields are stored in data attribute of M20OnlineCore\Entity\CharacterEntity class.

Testing

Unit testing

You can run unit testing through PHPUnit:

vendor/bin/phpunit

Code sniffer

Code follow PSR12, to run test:

vendor/bin/phpcs --standard=PSR12 src/

License

MIT

Credits


All versions of m20onlinecore with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
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 bertprod/m20onlinecore contains the following files

Loading the files please wait ....