{"id":20675848,"url":"https://github.com/byalperens/sqlconfig","last_synced_at":"2025-08-31T05:36:07.255Z","repository":{"id":184263845,"uuid":"413087426","full_name":"ByAlperenS/SqlConfig","owner":"ByAlperenS","description":null,"archived":false,"fork":false,"pushed_at":"2021-10-16T06:43:10.000Z","size":35,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T21:42:06.241Z","etag":null,"topics":["config","configuration","php","sqlite","sqlite-database","sqlite3","sqlite3-database"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ByAlperenS.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-10-03T13:35:24.000Z","updated_at":"2024-10-03T18:33:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"bc024a3f-beca-49fb-b4e7-5cd921013f9e","html_url":"https://github.com/ByAlperenS/SqlConfig","commit_stats":null,"previous_names":["byalperens/sqlconfig"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ByAlperenS/SqlConfig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByAlperenS%2FSqlConfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByAlperenS%2FSqlConfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByAlperenS%2FSqlConfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByAlperenS%2FSqlConfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ByAlperenS","download_url":"https://codeload.github.com/ByAlperenS/SqlConfig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ByAlperenS%2FSqlConfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272941566,"owners_count":25019148,"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-31T02:00:09.071Z","response_time":79,"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":["config","configuration","php","sqlite","sqlite-database","sqlite3","sqlite3-database"],"created_at":"2024-11-16T21:10:52.774Z","updated_at":"2025-08-31T05:36:07.183Z","avatar_url":"https://github.com/ByAlperenS.png","language":"PHP","readme":"# SqlConfig\n\n\u003e Sqlite Config for new beginners\n\n## API:\n#### Create Table:\n```php\n$this-\u003esqlconfig = SqlConfig::createDatabase($this-\u003egetDataFolder(), \"example.db\");\nSqlConfig::createTable($this-\u003esqlconfig, \"Example\", [\n    \"name\" =\u003e \"string\",\n    \"surname\" =\u003e \"string\",\n    \"age\" =\u003e \"int\"\n]);\n```\n#\n#### Insert:\n```php\nSqlConfig::insertToTable($this-\u003esqlconfig, \"Example\", [\n    \"name\" =\u003e \"Alperen\",\n    \"surname\" =\u003e \"Sancak\",\n    \"age\" =\u003e 15\n]);\n```\n#\n#### Delete:\n```php\nSqlConfig::removeFromTable($this-\u003esqlconfig, \"Example\", [\n    \"name\" =\u003e \"Alperen\",\n    \"surname\" =\u003e \"Sancak\"\n]);\n```\n#\n#### Select:\n```php\n$result = SqlConfig::selectTable($this-\u003esqlconfig, \"Example\", [\n    \"name\",\n    \"surname\"\n], [\n  \"name\" =\u003e \"Alperen\"\n]);\nvar_dump($result);\n```\n##### Result:\n```console\narray(1) {\n  [0]=\u003e\n  array(4) {\n    [0]=\u003e\n    string(7) \"Alperen\"\n    [\"name\"]=\u003e\n    string(7) \"Alperen\"\n    [1]=\u003e\n    string(6) \"Sancak\"\n    [\"surname\"]=\u003e\n    string(6) \"Sancak\"\n  }\n}\n```\n#\n#### Select All:\n```php\n$result = SqlConfig::selectAllTable($this-\u003esqlconfig, \"Example\");\nvar_dump($result);\n```\n##### Result:\n```console\narray(2) {\n  [0]=\u003e\n  array(6) {\n    [0]=\u003e\n    string(10) \"Ahmet Eren\"\n    [\"name\"]=\u003e\n    string(10) \"Ahmet Eren\"\n    [1]=\u003e\n    string(6) \"Sancak\"\n    [\"surname\"]=\u003e\n    string(6) \"Sancak\"\n    [2]=\u003e\n    int(15)\n    [\"age\"]=\u003e\n    int(15)\n  }\n  [1]=\u003e\n  array(6) {\n    [0]=\u003e\n    string(7) \"Alperen\"\n    [\"name\"]=\u003e\n    string(7) \"Alperen\"\n    [1]=\u003e\n    string(6) \"Sancak\"\n    [\"surname\"]=\u003e\n    string(6) \"Sancak\"\n    [2]=\u003e\n    int(15)\n    [\"age\"]=\u003e\n    int(15)\n  }\n}\n```\n#\n#### Update:\n```php\nSqlConfig::updateTable($this-\u003esqlconfig, \"Example\", [\n    \"name\" =\u003e \"Ahmet Eren\",\n    \"surname\" =\u003e \"Sancak\"\n], [\n    \"name\" =\u003e \"Alperen\",\n    \"surname\" =\u003e \"Sancak\"\n]);\n```\n#\n#### Table Data List:\n```php\n$result = SqlConfig::getTableDataList($this-\u003esqlconfig, \"Example\");\nvar_dump($result);\n```\n##### Result:\n```console\narray(1) {\n  [\"Test\"]=\u003e\n  array(3) {\n    [\"Row Count\"]=\u003e\n    int(2)\n    [\"Column Count\"]=\u003e\n    int(3)\n    [\"Columns Name\"]=\u003e\n    array(4) {\n      [0]=\u003e\n      string(4) \"name\"\n      [1]=\u003e\n      string(7) \"surname\"\n      [2]=\u003e\n      string(3) \"age\"\n      [3]=\u003e\n      bool(false)\n    }\n  }\n}\n```\n-\u003e [Example Plugin Class](https://github.com/ByAlperenS/SqlConfig/blob/master/example/Test.php).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyalperens%2Fsqlconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbyalperens%2Fsqlconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbyalperens%2Fsqlconfig/lists"}