pier-infor/gears

Gears system solver

1.0.0 2022-06-08 07:40 UTC

This package is auto-updated.

Last update: 2024-11-08 14:49:30 UTC


README

Calculate torques, speeds, direction for each items of a gear system.
Watch youtube explainations.

TravsisBadgeBuild CoverageCi ScrutinizerCq Latest Stable Version Total Downloads Latest Unstable Version

Gear

Composed by

  • Id
  • Teeth
  • Torque
  • Speed
  • Forward
  • Composed

Gear system

4 distinct gears

4gears

Check use case parameters file.

Input

Output

4 gears with BC composed

4gears_composed

Check use case parameters file.

Input

Output

Setup

First git clone this repo.

Requirements

  • php >= 7.3
  • composer
  • phpdbg

Composer scripts

Setup dependencies (once)

composer install

Run use case

composer start

Run unit tests and generate coverage.
After tests ran, to check coverage, open your browser in coverage folder and pick index.html file

composer test

Lint project as PSR12

composer lint

Update dependencies and regenerate autoloader PSR4

composer up

Run syntax analyzer

composer phpstan

Generate doc

composer doc

Regenerate autoloader optimized

composer genautoload