hidenari/helper-sample

helper function sample

Maintainers

Package info

github.com/hide-nari/helper-sample-php

pkg:composer/hidenari/helper-sample

Statistics

Installs: 28

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v1.6.4 2026-01-30 02:50 UTC

This package is auto-updated.

Last update: 2026-03-08 00:12:22 UTC


README

fizzbuzz function Sample on php version 8.5 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.