{"id":21074067,"url":"https://github.com/hugsbrugs/php-math","last_synced_at":"2025-07-09T07:38:05.921Z","repository":{"id":56986937,"uuid":"84927191","full_name":"hugsbrugs/php-math","owner":"hugsbrugs","description":"PHP Math Utilities","archived":false,"fork":false,"pushed_at":"2019-04-19T13:26:42.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-20T22:35:44.326Z","etag":null,"topics":["dice","math","modulo","php"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugsbrugs.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-14T08:58:35.000Z","updated_at":"2019-04-19T13:26:44.000Z","dependencies_parsed_at":"2022-08-21T13:20:14.610Z","dependency_job_id":null,"html_url":"https://github.com/hugsbrugs/php-math","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugsbrugs%2Fphp-math","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugsbrugs%2Fphp-math/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugsbrugs%2Fphp-math/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugsbrugs%2Fphp-math/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugsbrugs","download_url":"https://codeload.github.com/hugsbrugs/php-math/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243516824,"owners_count":20303518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dice","math","modulo","php"],"created_at":"2024-11-19T19:14:22.119Z","updated_at":"2025-03-14T03:24:54.213Z","avatar_url":"https://github.com/hugsbrugs.png","language":"PHP","readme":"# php-math\n\nThis librairy provides utilities function to ease math \u0026 stats\n\n[![Build Status](https://travis-ci.org/hugsbrugs/php-math.svg?branch=master)](https://travis-ci.org/hugsbrugs/php-math)\n[![Coverage Status](https://coveralls.io/repos/github/hugsbrugs/php-math/badge.svg?branch=master)](https://coveralls.io/github/hugsbrugs/php-math?branch=master)\n\n## Install\n\nInstall package with composer\n```\ncomposer require hugsbrugs/php-math\n```\n\nIn your PHP code, load library\n```php\nrequire_once __DIR__ . '/../vendor/autoload.php';\nuse Hug\\Math\\Math as Math;\n```\n\n## Usage\n\nReturn modulo of a number given a divider\n```php\nMath::modulo($nb, $divider);\n```\n\nCompute Dice Coefficient for 2 given texts\n```php\nMath::dice($str1 = '', $str2 = '');\n```\n\n## Unit Tests\n\n```\nphpunit --bootstrap vendor/autoload.php test\n```\n\n## Author\n\nHugo Maugey [visit my website ;)](https://hugo.maugey.fr)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugsbrugs%2Fphp-math","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugsbrugs%2Fphp-math","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugsbrugs%2Fphp-math/lists"}