{"id":33968001,"url":"https://github.com/aboyadzhiev/php-math-parser","last_synced_at":"2025-12-12T23:57:31.073Z","repository":{"id":22449218,"uuid":"25787620","full_name":"aboyadzhiev/php-math-parser","owner":"aboyadzhiev","description":"Simple mathematical expression parser and calculator.","archived":false,"fork":false,"pushed_at":"2022-12-15T14:55:41.000Z","size":20,"stargazers_count":24,"open_issues_count":0,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-09-27T11:36:34.435Z","etag":null,"topics":["calculator","math","mathematical-expression-parser","php"],"latest_commit_sha":null,"homepage":"","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/aboyadzhiev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-26T19:30:23.000Z","updated_at":"2025-08-29T05:34:13.000Z","dependencies_parsed_at":"2023-01-13T22:00:46.238Z","dependency_job_id":null,"html_url":"https://github.com/aboyadzhiev/php-math-parser","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/aboyadzhiev/php-math-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboyadzhiev%2Fphp-math-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboyadzhiev%2Fphp-math-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboyadzhiev%2Fphp-math-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboyadzhiev%2Fphp-math-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboyadzhiev","download_url":"https://codeload.github.com/aboyadzhiev/php-math-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboyadzhiev%2Fphp-math-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27695692,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"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","math","mathematical-expression-parser","php"],"created_at":"2025-12-12T23:57:30.358Z","updated_at":"2025-12-12T23:57:31.063Z","avatar_url":"https://github.com/aboyadzhiev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Math\n\nSimple mathematical expression parser and calculator.\n\n## Install\nThe recommended way to install Math is [through composer](http://getcomposer.org).\n\n```JSON\n{\n    \"require\": {\n        \"aboyadzhiev/php-math-parser\": \"dev-master\"\n    }\n}\n```\n## Usage\n\nHere is simple example of evaluating math expression\n```php\n\u003c?php\n\n$parser = new \\Math\\Parser();\n$expression = '1 + 2 * 3 * ( 7 * 8 ) - ( 45 - 10 )';\n$result = $parser-\u003eevaluate($expression);\n\necho $result; // 302\n\n$expression = '-2+-2*13*(7*8)-(415-0.1)';\n$result = $parser-\u003eevaluate($expression);\n\necho $result; // -1872.90\n\n\n\n```\n## TODO\n  - Add additional translation strategy\n\n## License\n\nMIT, see LICENSE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboyadzhiev%2Fphp-math-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboyadzhiev%2Fphp-math-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboyadzhiev%2Fphp-math-parser/lists"}