{"id":20109080,"url":"https://github.com/ristep/simpj2j","last_synced_at":"2025-12-30T21:18:21.163Z","repository":{"id":101520994,"uuid":"216609460","full_name":"ristep/SimpJ2J","owner":"ristep","description":"Single entry point PHP api, JSON request and respond","archived":false,"fork":false,"pushed_at":"2020-08-09T07:52:52.000Z","size":15152,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T18:24:58.278Z","etag":null,"topics":["api-service","composer","json","mysql","pdo","pdo-php","php","simple-json-rpc","sql","sql-statement"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/ristep.png","metadata":{"files":{"readme":"README.md","changelog":"changePassword.txt","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2019-10-21T16:03:43.000Z","updated_at":"2020-08-09T07:52:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"b209da2a-e686-4d3a-9bcd-f811465f9cf1","html_url":"https://github.com/ristep/SimpJ2J","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ristep/SimpJ2J","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ristep%2FSimpJ2J","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ristep%2FSimpJ2J/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ristep%2FSimpJ2J/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ristep%2FSimpJ2J/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ristep","download_url":"https://codeload.github.com/ristep/SimpJ2J/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ristep%2FSimpJ2J/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278457470,"owners_count":25989955,"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-10-05T02:00:06.059Z","response_time":54,"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":["api-service","composer","json","mysql","pdo","pdo-php","php","simple-json-rpc","sql","sql-statement"],"created_at":"2024-11-13T18:07:03.544Z","updated_at":"2025-10-05T12:52:13.663Z","avatar_url":"https://github.com/ristep.png","language":"JavaScript","readme":"# SimpJ2J [![GitHub tag (latest SemVer)](https://img.shields.io/github/v/tag/ristep/SimpJ2J?label=ver\u0026sort=semver)](https://github.com/ristep/SimpJ2J/tags) [![GitHub](https://img.shields.io/github/license/ristep/SimpJ2J)](https://github.com/ristep/SimpJ2J/blob/master/LICENSE)\n\n## Simple JSON to SQL to JSON single point DB access API writhen with PHP and PDO\n\nI started this project some time ago just for testing purposes. It was meant to be used in my ReactJS experiments. But I think is quite useful for small projects and not so small project.\n\nDo it simple bro, is the main motto in this project. All other API for remote db access are to complex for my taste.\n\nAnyway now is completely open an anyone can use it as he whish.\n\nActually this is only a JSON wrapper for SQL, or transformer, transforms JSON to SQL statement then execute that statement and return result in JSON encoded object.\n\n## Getting Started\n\nJust download or clone this repo on jour LAMP server and compose :)\n\nWrite on command prompt\n\n\u003e\n\u003ecomposer install\n\u003e\n\ncomposer will download \"firebase/php-jwt\" in /vendor folder.\n\n## Prerequisites\n\nMySQL, PHP with PDO enabled on an apache2 webserver. Probably will work on eny http sever with PHP but is not tested, yet.\n\nFull source code for testing app can be found here ong github [ristep/SimpJ2J-react-test](https://github.com/ristep/SimpJ2J-react-test)\n\n## Using\n\nJust send post request whit JSON encoded Data\n\n```js\n// Example request JSON\n{\n  sqlStatement: 'select',\n  table: 'foods',\n  fields: [\n    'id',\n    'name'\n  ],\n  keyData: {\n    id: 980\n  }\n}\n```\n\nthis will be transformed in to SQL statement:\n\n```SQL\nSELECT id,name FROM foods WHERE id='980' ;\n```\n\nand if everything is OK service will return something like this\n\n```json\n{\n  \"OK\": true,\n  \"error\": false,\n  \"message\": \" successfully!\",\n  \"SQL\": \"SELECT id,name FROM foods WHERE id='980'  ;\",\n  \"count\": 1,\n  \"data\": [\n    {\n      \"id\": 980,\n      \"name\": \"Updated food name\"\n    }\n  ]\n}\n```\n\n## Examples\n\nFor live example go to this link:\n\n\u003e\n\u003e \u003ca href=\"https://llc-test.sman.cloud/\" target=\"_blank\"\u003ellc-test.sman.cloud\u003c/a\u003e\n\u003e\n\n## Built With\n\n* [PHP](https://www.php.net/) - PHP is a popular general-purpose scripting language that is especially suited to web development.\n* [PDO](https://www.php.net/manual/en/book.pdo.php) - PHP Data Objects\n* [php-jwt](https://github.com/firebase/php-jwt) - A simple library to encode and decode JSON Web Tokens (JWT) in PHP, conforming to RFC 7519.\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](./CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.\n\n## Versioning\n\nWe use [SemVer](http://semver.org/) for versioning. For the versions available, see the [tags on this repository](https://github.com/ristep/SimpJ2J/tags).\n\n## Author\n\n[Riste Panovski](https://github.com/ristep)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fristep%2Fsimpj2j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fristep%2Fsimpj2j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fristep%2Fsimpj2j/lists"}