{"id":15313980,"url":"https://github.com/wiledal/flatfiledb","last_synced_at":"2025-07-13T08:09:18.566Z","repository":{"id":4901629,"uuid":"6057665","full_name":"wiledal/FlatFileDB","owner":"wiledal","description":"Easy Flat File DB handling with PHP","archived":false,"fork":false,"pushed_at":"2012-10-03T09:12:31.000Z","size":95,"stargazers_count":3,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T13:46:27.939Z","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":"rthalley/dnspython","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wiledal.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-10-03T09:05:41.000Z","updated_at":"2021-03-23T18:56:33.000Z","dependencies_parsed_at":"2022-09-16T07:40:18.923Z","dependency_job_id":null,"html_url":"https://github.com/wiledal/FlatFileDB","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wiledal/FlatFileDB","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiledal%2FFlatFileDB","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiledal%2FFlatFileDB/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiledal%2FFlatFileDB/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiledal%2FFlatFileDB/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wiledal","download_url":"https://codeload.github.com/wiledal/FlatFileDB/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wiledal%2FFlatFileDB/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265108514,"owners_count":23712466,"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-10-01T08:43:56.737Z","updated_at":"2025-07-13T08:09:18.540Z","avatar_url":"https://github.com/wiledal.png","language":"PHP","readme":"FlatFileDB\n=======\n\n**Version 1.0**\n**By Hugo Wiledal**\n\nFeatures\n--------\n* Read and write to .csv file format for easy flat file db handling\n\n## Angry example usage (I wrote this in frustration, it's all good though)\n\n### get($table):\nGETS THE FUCKING TABLE (URL) AND RETURNS IT IN A FUCKING ARRAY WHERE EACH FUCKING COLUMN IS REPRESENTED BY ITS TITLE.\nFOR INSTANCE:\n```php\n$db = new FlatFileDB();\n$table = $db-\u003eget(\"dbtable.csv\");\nforeach($table as $row) {\n\techo $row[\"user_name\"].\": \".$row[\"user_score\"];\n}\n```\n\n### insert($table, $row, $id):\nINSERTS A FUCKING ROW INTO THE FILE AND SHIT LIKE THAT.\nFOR INSTANCE:\n```php\n$db = new FlatFileDB();\n$entry = array(\n\t\"user_name\" =\u003e \"God\",\n\t\"user_score\" =\u003e \"-666\"\n);\n$db-\u003einsert(\"dbtable.csv\", $entry);\n```\n\n### update($table, $id, $row):\nWHAT THE FUCK DO YOU THINK IT FUCKING DOES?!\nYOU HAVE TO PROVIDE THE _id OF THE ROW YOU WANT TO UPDATE. THIS ID IS GENERATED AUTOMAGICALLY, OR SET BY YOU IF YOU WANT TO DO THAT YOU PIECE OF SHIT.\nFOR INSTANCE:\n```php\n$db = new FlatFileDB();\n$entry = array(\n\t\"user_name\" =\u003e \"God\",\n\t\"user_score\" =\u003e \"-666666\"\n);\n$db-\u003eupdate(\"dbtable.csv\", $rowID, $entry);\n```\n\n### delete($table, $id):\nDE-FUCKING-LETES A ROW, WHERE THE ROW ID = THE FUCKING _id.\nFOR INSTANCE:\n```php\n$db = new FlatFileDB();\n$db-\u003edelete(\"dbtable.csv\", $rowID);\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiledal%2Fflatfiledb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwiledal%2Fflatfiledb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwiledal%2Fflatfiledb/lists"}