pier-infor / gears
Gears system solver
1.0.0
2022-06-08 07:40 UTC
Requires
- php: >=7.4.0
- monolog/monolog: ^1.25
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.17
- phploc/phploc: ^5.0
- phpmd/phpmd: @stable
- phpstan/phpstan: ^1.6
- phpunit/phpunit: ^8.0
- pier-infor/undercover: ^1.0.1
- squizlabs/php_codesniffer: *
- theseer/phpdox: @stable
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.
Gear
Composed by
- Id
- Teeth
- Torque
- Speed
- Forward
- Composed
Gear system
4 distinct gears
Check use case parameters file.
Input
Output
4 gears with BC 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