{"id":19338849,"url":"https://github.com/andreiigna/safe-eval","last_synced_at":"2025-02-24T08:20:45.117Z","repository":{"id":57012870,"uuid":"183630385","full_name":"AndreiIgna/safe-eval","owner":"AndreiIgna","description":"Safely evaluate code expressions in PHP","archived":false,"fork":false,"pushed_at":"2019-05-02T09:50:55.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-06T10:47:05.893Z","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/AndreiIgna.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":"2019-04-26T13:08:03.000Z","updated_at":"2023-03-06T21:29:49.000Z","dependencies_parsed_at":"2022-08-21T13:40:52.187Z","dependency_job_id":null,"html_url":"https://github.com/AndreiIgna/safe-eval","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiIgna%2Fsafe-eval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiIgna%2Fsafe-eval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiIgna%2Fsafe-eval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndreiIgna%2Fsafe-eval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndreiIgna","download_url":"https://codeload.github.com/AndreiIgna/safe-eval/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240441992,"owners_count":19801806,"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-10T03:18:53.519Z","updated_at":"2025-02-24T08:20:45.073Z","avatar_url":"https://github.com/AndreiIgna.png","language":"PHP","readme":"# Safe Eval\n\nSafely evaluate code expressions in PHP, without using `eval`. [ExpressionLanguage](https://github.com/symfony/expression-language) is most likely better at this, but SafeEval still supports PHP 5, for the projects that need it.\n\n## Usage\n```php\nuse Layered\\SafeEval\\SafeEval;\n\n$safeEval = new SafeEval;\n\necho $safeEval-\u003eeval('1 + 2');\nvar_dump($safeEval-\u003eeval('1 or 0'));\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiigna%2Fsafe-eval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreiigna%2Fsafe-eval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreiigna%2Fsafe-eval/lists"}