{"id":19165089,"url":"https://github.com/bragful/ephp_json","last_synced_at":"2026-04-15T12:36:12.501Z","repository":{"id":75519679,"uuid":"97229482","full_name":"bragful/ephp_json","owner":"bragful","description":"JSON library for ePHP (part of Bragful)","archived":false,"fork":false,"pushed_at":"2020-01-08T01:02:21.000Z","size":785,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-29T09:38:08.828Z","etag":null,"topics":["bragful","ephp","erlang","interpreter","json","php-library"],"latest_commit_sha":null,"homepage":"https://bragful.com","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bragful.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["manuel-rubio"],"patreon":"altenwald","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-07-14T11:59:05.000Z","updated_at":"2020-11-06T10:59:18.000Z","dependencies_parsed_at":"2023-06-18T23:30:35.279Z","dependency_job_id":null,"html_url":"https://github.com/bragful/ephp_json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bragful/ephp_json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bragful","download_url":"https://codeload.github.com/bragful/ephp_json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31842185,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T11:29:19.690Z","status":"ssl_error","status_checked_at":"2026-04-15T11:29:19.171Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bragful","ephp","erlang","interpreter","json","php-library"],"created_at":"2024-11-09T09:26:29.131Z","updated_at":"2026-04-15T12:36:12.478Z","avatar_url":"https://github.com/bragful.png","language":"Erlang","funding_links":["https://github.com/sponsors/manuel-rubio","https://patreon.com/altenwald"],"categories":[],"sub_categories":[],"readme":"\n\n# ePHP JSON #\n\nCopyright (c) 2017-2019 Altenwald Solutions, S.L.\n\n__Authors:__ \"Manuel Rubio\" ([`manuel@altenwald.com`](mailto:manuel@altenwald.com)).\n\n[![Build Status](https://img.shields.io/travis/bragful/ephp_json/master.svg)](https://travis-ci.org/bragful/ephp_json)\n[![Codecov](https://img.shields.io/codecov/c/github/bragful/ephp_json.svg)](https://codecov.io/gh/bragful/ephp_json)\n[![License: LGPL 2.1](https://img.shields.io/github/license/bragful/ephp_json.svg)](https://raw.githubusercontent.com/bragful/ephp_json/master/COPYING)\n\nThis library implements the JSON functions as is in PHP code for [ephp](https://github.com/bragful/ephp) keeping in mind to have it as pure 100% Erlang.\n\n\n### \u003ca name=\"Requirements\"\u003eRequirements\u003c/a\u003e ###\n\nePHP JSON requires to be run over an Erlang/OTP 17+, but not all the versions are full compatible or recommended. See the list:\n\n| Erlang Version | Support | Notes |\n|:---|:---:|:---|\n| 22.1 | :heavy_check_mark: | Recommended if you use OTP 22 |\n| 22.0 | :heavy_check_mark: | |\n| 21.3 | :heavy_check_mark: | Recommended if you use OTP 21 |\n| 21.2 | :heavy_check_mark: | |\n| 21.1 | :heavy_check_mark: | |\n| 21.0 | :heavy_check_mark: | |\n| 20.3 | :x: | Fails in math and number conversion |\n| 20.2 | :heavy_check_mark: | Recommended if you use OTP 20 |\n| 20.1 | :heavy_check_mark: | |\n| 20.0 | :heavy_check_mark: | |\n| 19.3 | :heavy_check_mark: | Recommended if you use OTP 19 |\n| 19.2 | :heavy_check_mark: | |\n| 19.1 | :heavy_check_mark: | |\n| 19.0 | :heavy_check_mark: | |\n| 18.3 | :heavy_check_mark: | Recommended if you use OTP 18 |\n| 18.2.1 | :heavy_check_mark: | |\n| 18.2 | :heavy_check_mark: | |\n| 18.1 | :heavy_check_mark: | |\n| 18.0 | :heavy_check_mark: | |\n\n\n### \u003ca name=\"Getting_Started\"\u003eGetting Started\u003c/a\u003e ###\n\nA simple way to use, is include in your project `rebar.config` the following dependency line:\n\n```erlang\n    {ephp_json, \".*\", {git, \"git://github.com/bragful/ephp_json.git\", master}}\n```\n\nAnd use the following code in your project:\n\n```erlang\n{ok, Ctx} = ephp:context_new(),\nephp:register_module(Ctx, ephp_lib_json),\nPHP = \"Empty array output as array: \u003c?=json_encode('tada')?\u003e\",\n{ok, Text} = ephp:eval(Ctx, PHP).\n```\n\nThe result stored in `Text` should be:\n\n```\nEmpty array output as array: \"tada\"\n```\nEnjoy!\n\n\n## Modules ##\n\n\n\u003ctable width=\"100%\" border=\"0\" summary=\"list of modules\"\u003e\n\u003ctr\u003e\u003ctd\u003e\u003ca href=\"http://github.com/bragful/ephp_json/blob/master/doc/ephp_lib_json.md\" class=\"module\"\u003eephp_lib_json\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbragful%2Fephp_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbragful%2Fephp_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbragful%2Fephp_json/lists"}