{"id":18794563,"url":"https://github.com/effectra/sql-query","last_synced_at":"2026-05-07T08:34:18.598Z","repository":{"id":182361771,"uuid":"655449274","full_name":"effectra/sql-query","owner":"effectra","description":"Effectra/SqlQuery is a powerful database manipulation package for PHP.","archived":false,"fork":false,"pushed_at":"2023-11-11T20:54:46.000Z","size":155,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-29T16:34:06.399Z","etag":null,"topics":["manupulation","mysql","php","sql","sql-query","sqlite","syntax"],"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/effectra.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-18T23:20:41.000Z","updated_at":"2024-01-14T12:49:35.000Z","dependencies_parsed_at":"2023-11-11T21:38:27.994Z","dependency_job_id":null,"html_url":"https://github.com/effectra/sql-query","commit_stats":null,"previous_names":["effectra/sql-query"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fsql-query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fsql-query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fsql-query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/effectra%2Fsql-query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/effectra","download_url":"https://codeload.github.com/effectra/sql-query/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239718734,"owners_count":19685806,"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":["manupulation","mysql","php","sql","sql-query","sqlite","syntax"],"created_at":"2024-11-07T21:29:48.052Z","updated_at":"2025-12-29T19:30:12.386Z","avatar_url":"https://github.com/effectra.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Effectra SqlQuery\n\nEffectra/SqlQuery is a powerful database manipulation package for PHP.\n\n## Installation\n\nYou can install this package via Composer. Run the following command:\n\n```bash\ncomposer require effectra/sql-query\n```\n\n## Usage\n\n### Query Example\n\n```php\nuse Effectra\\SqlQuery\\Query;\n\n\n// Select statement\n$query = Query::select('users')-\u003ecolumns(['id','email','password'])-\u003ewhere(['id' =\u003e 9841]);\n\n// Print the SQL query\necho $query;\n\n//output\n//  SELECT id, email, password FROM users WHERE id = 9841 \n```\n\n### Table Example\n\n```php\nuse Effectra\\SqlQuery\\Table;\nuse Effectra\\SqlQuery\\Charset;\nuse Effectra\\SqlQuery\\Driver;\nuse Effectra\\SqlQuery\\Engine;\n\nQuery::driver(Driver::MySQL);\n\nQuery::createTable('users', function (Table $table) {\n    $table-\u003eautoIncrement();\n    $table-\u003eusername()-\u003eunique();\n    $table-\u003eemail()-\u003eunique();\n    $table-\u003etimestamps();\n})-\u003eengine(Engine::MYSQL_InnoDB)-\u003echarset(Charset::MySQL_utf8mb4);\n\n\n```\noutput: \n```sql\nCREATE TABLE users ( \n    id BIGINT NOT NULL AUTO_INCREMENT , \n    username VARCHAR (50) NOT NULL UNIQUE CHECK (username REGEXP '^[a-zA-Z0-9_]+$'), \n    email VARCHAR (255) NOT NULL UNIQUE CHECK (email REGEXP '^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$'), \n    created_at TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP , \n    updated_at TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP \n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4_0900_ai_ci\n```\n\n## License\n\nThis package is open-source and available under the [MIT License](https://opensource.org/licenses/MIT).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fsql-query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feffectra%2Fsql-query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feffectra%2Fsql-query/lists"}