{"id":15746253,"url":"https://github.com/alesanchezr/json-orm","last_synced_at":"2025-08-21T09:12:33.034Z","repository":{"id":56944137,"uuid":"156492272","full_name":"alesanchezr/json-orm","owner":"alesanchezr","description":"Create and manage a database with just JSON static files.","archived":false,"fork":false,"pushed_at":"2019-08-10T03:36:57.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-02T04:17:43.011Z","etag":null,"topics":["database","json","json-orm","static-file-orm"],"latest_commit_sha":null,"homepage":"","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/alesanchezr.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":"2018-11-07T04:55:45.000Z","updated_at":"2020-11-02T20:40:45.000Z","dependencies_parsed_at":"2022-08-21T07:20:13.358Z","dependency_job_id":null,"html_url":"https://github.com/alesanchezr/json-orm","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/alesanchezr/json-orm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesanchezr%2Fjson-orm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesanchezr%2Fjson-orm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesanchezr%2Fjson-orm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesanchezr%2Fjson-orm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alesanchezr","download_url":"https://codeload.github.com/alesanchezr/json-orm/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alesanchezr%2Fjson-orm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271455361,"owners_count":24762703,"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-08-21T02:00:08.990Z","response_time":74,"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":["database","json","json-orm","static-file-orm"],"created_at":"2024-10-04T04:41:53.042Z","updated_at":"2025-08-21T09:12:32.994Z","avatar_url":"https://github.com/alesanchezr.png","language":"PHP","readme":"# JSON PDO\n\n[![Build Status](https://travis-ci.org/alesanchezr/json-orm.svg?branch=master)](https://travis-ci.org/alesanchezr/json-orm)\n[![Coverage Status](https://coveralls.io/repos/github/alesanchezr/json-orm/badge.svg?branch=master)](https://coveralls.io/github/alesanchezr/json-orm?branch=master)\n\nVery simple JSON file based database manager.\n\n## Installation\n\nThis library can be found on [Packagist](https://packagist.org/packages/alesanchezr/json-orm).\n\nThe recommended way to install is through [composer](http://getcomposer.org).\n\nEdit your `composer.json` and add :\n\n```json\n{\n    \"require\": {\n       \"alesanchezr/json-orm\": \"dev-master\"\n    }\n}\n```\n\nInstall dependencies :\n\n```bash\nphp composer.phar install\n```\n\n## How use it?\n\n```php\nrequire 'vendor/autoload.php';\n\nuse JsonPDO\\JsonPDO;\n\n//create a database pointing to a file or folder\n$orm = new JsonPDO('./tests/data/');\n\n//get any file from the data folder\n$content = $orm-\u003egetJsonByName('countries');\n\n//save some data into a json file\n$someData = [ \"ve\" =\u003e \"venezuela\" ];\n$file = $orm-\u003etoNewFile('countries');\n$file-\u003esave($content);\n\n//check if a json file exists\n$exists = $orm-\u003ejsonExists('countries');\n\n//if there are several json files, you can list them all\n$allFiles = $orm-\u003egetAllFiles();\n\n//delete a json file\n$orm-\u003edeleteFile('countries');\n\n```\n\n## Running Tests\n\nLaunch from command line :\n\n```console\n./vendor/bin/phpunit --bootstrap vendor/autoload.php tests/*\n```\n\n## License MIT\n\n## Contact\n\nAuthors : Alejandro Sanchez\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falesanchezr%2Fjson-orm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falesanchezr%2Fjson-orm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falesanchezr%2Fjson-orm/lists"}