{"id":33991338,"url":"https://github.com/sujalpatel2209/calculator_package","last_synced_at":"2026-05-29T03:31:53.437Z","repository":{"id":57061140,"uuid":"212812783","full_name":"sujalpatel2209/calculator_package","owner":"sujalpatel2209","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-08T07:06:35.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-14T18:53:09.901Z","etag":null,"topics":["calculator","first","package","sujalpatel"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sujalpatel2209.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-04T12:43:46.000Z","updated_at":"2019-10-17T06:08:52.000Z","dependencies_parsed_at":"2022-08-24T07:30:46.508Z","dependency_job_id":null,"html_url":"https://github.com/sujalpatel2209/calculator_package","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sujalpatel2209/calculator_package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujalpatel2209%2Fcalculator_package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujalpatel2209%2Fcalculator_package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujalpatel2209%2Fcalculator_package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujalpatel2209%2Fcalculator_package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sujalpatel2209","download_url":"https://codeload.github.com/sujalpatel2209/calculator_package/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujalpatel2209%2Fcalculator_package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33635961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calculator","first","package","sujalpatel"],"created_at":"2025-12-13T06:45:05.814Z","updated_at":"2026-05-29T03:31:53.421Z","avatar_url":"https://github.com/sujalpatel2209.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Calculator\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/sujalpatel/calculator.svg?style=flat-square)](https://packagist.org/packages/sujalpatel/calculator)\n[![Build Status](https://travis-ci.org/sujalpatel2209/calculator_package.svg?branch=master)](https://travis-ci.org/sujalpatel2209/calculator_package)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/sujalpatel2209/calculator_package/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/sujalpatel2209/calculator_package/?branch=master)\n[![Code Intelligence Status](https://scrutinizer-ci.com/g/sujalpatel2209/calculator_package/badges/code-intelligence.svg?b=master)](https://scrutinizer-ci.com/code-intelligence)\n[![Total Downloads](https://img.shields.io/packagist/dt/sujalpatel/calculator.svg?style=flat-square)](https://packagist.org/packages/sujalpatel/calculator)\n\n\nSimple Calculation Function Addition, Subtraction and Multiplication.\n\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require sujalpatel/calculator\n```\n\n## Usage\n\n**Add Function**\n``` php\nuse Sujalpatel\\Calculator\\Calculator;\n\npublic function addition()\n{\n    return Calculator::add(5,5); // Answer: 5 + 5 = 5\n}\n```\n\n**Sub Function**\n``` php\nuse Sujalpatel\\Calculator\\Calculator;\n\npublic function subtraction()\n{\n    return Calculator::sub(10,5); // Answer: 10 - 5 = 5\n}\n```\n\n**Multi Function**\n``` php\nuse Sujalpatel\\Calculator\\Calculator;\n\npublic function multiplication()\n{\n    return Calculator::multi(2,5); // Answer: 2 * 5 = 10\n}\n```\n\n### Testing\n\n``` bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email sujalpatel022@gmail.com instead of using the issue tracker.\n\n## Credits\n\n- [Sujal Patel](https://github.com/sujalpatel)\n- [Laravel Package Boilerplate](https://laravelpackageboilerplate.com)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujalpatel2209%2Fcalculator_package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujalpatel2209%2Fcalculator_package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujalpatel2209%2Fcalculator_package/lists"}