Download the PHP package dholmes/bga-workbench without Composer
On this page you can find all versions of the php package dholmes/bga-workbench. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package bga-workbench
BoardGameArena Workbench
A set of tools to work with BoardGameArena projects.
- Installation
- Initialise BGA Project
- Deploying to BGA Studio
- Compiling composer projects
-
Testing utilities
-
Projects Using BGA Workbench
- Development
- Requirements
- Setting up Developer Machine
- Running tests
Installation
Via composer:
Via Docker:
(this last line should be set in your ~/.bashrc to keep the alias working in a new terminal)
To set up your project to work with BGA Workbench you need to have a bgaproject.yml
file in the root. To generate one
see the bgawb init
command.
Initialise BGA Project
Once you've installed bgawb you can run the below command to interactively create a bgaproject.yml
file in your
current directory.
Deploying to BGA Studio
Continuous Deployment to Studio
Watches development files and deploys them as they change.
Compiling composer projects
The Board Game Arena production framework/environment doesn't natively support a Composer
project setup. By having useComposer: true
set in your bgaproject.yml
file, the
[bgawb build
](Deploying to BGA Studio) command will merge all non-dev composer dependencies inline into your .game.php
file before deploying.
Testing Utilities
Some testing utilities are provided to help test various parts of a standard BGA project game.
The Validate Command
Will run some basic checks on your project setup. e.g. whether you have the required files to function on the BGA
platform (.game.php
, .action.php
, etc), whether your states.inc.php
file is valid, etc.
PHPUnit TestHelp trait
Including this trait and implementing the createGameTableInstanceBuilder
method will set up and tear down a game table
instance for each test that is run. Note that this makes use of the setUp
and tearDown
PHPUnit hooks
Projects Using BGA Workbench
Development
i.e. if you want to make some changes to the BGA Workbench project. This is not required for using the library in your own project.
Requirements
Setting up Developer Machine
Running Tests
Publishing a New Version
- Add a release/tag on github with the version number.
- Go to the packagist url and click "Update": https://packagist.org/packages/dholmes/bga-workbench. This should be done automatically though if just left.
All versions of bga-workbench with dependencies
ext-mysqli Version *
ext-pdo_mysql Version *
lstrojny/functional-php Version >=1.6.0 <1.8.0
classpreloader/classpreloader Version ^3.1.0
jasonlewis/resource-watcher Version 1.2.0
symfony/console Version ^3.3.8
symfony/config Version ^3.3.8
symfony/process Version ^3.3.8
symfony/finder Version ^3.3.8
symfony/yaml Version ^3.3.8
phpseclib/phpseclib Version ^2.0.6
nette/reflection Version ^2.4.2
fzaninotto/faker Version ^1.7.1
doctrine/dbal Version ^2.5.12
phpoption/phpoption Version ^1.5.0
hamcrest/hamcrest-php Version ^2.0.0
squizlabs/php_codesniffer Version ^3.0.0
illuminate/support Version >=4.0 < 6.0.0