{"id":18498456,"url":"https://github.com/zircote/expressive","last_synced_at":"2025-04-09T00:31:18.834Z","repository":{"id":57091405,"uuid":"4982094","full_name":"zircote/Expressive","owner":"zircote","description":null,"archived":false,"fork":false,"pushed_at":"2013-12-17T01:37:51.000Z","size":184,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T19:45:19.583Z","etag":null,"topics":[],"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/zircote.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":"2012-07-10T23:38:16.000Z","updated_at":"2016-04-18T06:55:47.000Z","dependencies_parsed_at":"2022-08-22T20:40:51.202Z","dependency_job_id":null,"html_url":"https://github.com/zircote/Expressive","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/zircote%2FExpressive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FExpressive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FExpressive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zircote%2FExpressive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zircote","download_url":"https://codeload.github.com/zircote/Expressive/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247949886,"owners_count":21023409,"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":[],"created_at":"2024-11-06T13:40:12.447Z","updated_at":"2025-04-09T00:31:17.930Z","avatar_url":"https://github.com/zircote.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Expressive\n\n[![Build Status](https://secure.travis-ci.org/zircote/Expressive.png)](http://travis-ci.org/zircote/Expressive)\n\nA PHP expression parser. This tool was largely inspired by snips of code I came across\non the web while looking for some form of an expression DSL. The approach inspired me\nenough to feel it deserved sharing. Unfortunately these snippets had no name associated\nwith them and I am therefor unable to attribute the inspirative work to its inceptor.\n\n\n## Use:\n\n### Inline PHP\n```php\n\u003c?php\n$expression = new \\Expressive\\Parser('(2+2)*sqrt(4)');\necho $expression;\n// 8\n```\n\n### CLI:\n_this is intended more as an example use_\n\n```\n\u003e bin/expr\n\nmath \u003e (2+2)*sqrt(4)\n8\nmath \u003e exit\n\u003e\n\n```\n\nSupported Operations:\n - `+` addition `2+2`\n - `-` substraction `4-2`\n - `/` division `4/2`\n - `*` multiplication `2*2`\n - `^` exponential `2^2`\n - `sin` sine `sin(60)`\n - `cos` cosine `cos(90)`\n - `tan` tangent `tan(45)`\n - `sqrt` square root `sqrt(4)`\n - `exp` exponent `exp(12)`\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/zircote/expressive/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fexpressive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzircote%2Fexpressive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzircote%2Fexpressive/lists"}