hidenari/helper-sample

helper function sample

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/hidenari/helper-sample

v1.6.3 2025-12-27 00:01 UTC

This package is auto-updated.

Last update: 2025-12-27 02:30:34 UTC


README

fizzbuzz function Sample on php version 8.3 or later.

about this package

function fizzbuzz(number)

When given a number, it returns string or number depending on the condition.

Conditions

  • If divisible by 3, it returns “fizz”.

  • If divisible by 5, it returns “buzz”.

  • Extends - If divisible by 30, it returns uppercase words.

Update Rules

When updating, execute the following command.

herd coverage ./vendor/bin/pest --coverage
./vendor/bin/pest
./vendor/bin/pint
./vendor/bin/phpstan analyse src --level=10

License

This utility is open-sourced software licensed under the MIT license.