{"id":14985381,"url":"https://github.com/catfan/medoo","last_synced_at":"2025-05-13T17:04:04.609Z","repository":{"id":7747536,"uuid":"9114826","full_name":"catfan/Medoo","owner":"catfan","description":"The lightweight PHP database framework to accelerate the development.","archived":false,"fork":false,"pushed_at":"2025-03-31T08:03:33.000Z","size":484,"stargazers_count":4872,"open_issues_count":53,"forks_count":1149,"subscribers_count":211,"default_branch":"master","last_synced_at":"2025-05-06T16:11:49.367Z","etag":null,"topics":["composer","database","hacktoberfest","medoo","mssql","mysql","php","php-database-framework","php-framework","php-frameworks","sqlite"],"latest_commit_sha":null,"homepage":"https://medoo.in","language":"PHP","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/catfan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"zenodo":null},"funding":{"open_collective":"medoo","custom":["https://paypal.me/AngelaonLai"]}},"created_at":"2013-03-30T11:20:52.000Z","updated_at":"2025-05-05T07:34:28.000Z","dependencies_parsed_at":"2024-02-03T12:29:51.457Z","dependency_job_id":"2b29c126-1d7a-4fa6-a486-ca63843dee1a","html_url":"https://github.com/catfan/Medoo","commit_stats":{"total_commits":608,"total_committers":21,"mean_commits":"28.952380952380953","dds":0.3470394736842105,"last_synced_commit":"7775795b06b83727d5f78e27ca32033717091ccb"},"previous_names":[],"tags_count":59,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catfan%2FMedoo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catfan%2FMedoo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catfan%2FMedoo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/catfan%2FMedoo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/catfan","download_url":"https://codeload.github.com/catfan/Medoo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253990455,"owners_count":21995773,"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":["composer","database","hacktoberfest","medoo","mssql","mysql","php","php-database-framework","php-framework","php-frameworks","sqlite"],"created_at":"2024-09-24T14:10:49.869Z","updated_at":"2025-05-13T17:04:04.548Z","avatar_url":"https://github.com/catfan.png","language":"PHP","funding_links":["https://opencollective.com/medoo","https://paypal.me/AngelaonLai"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://medoo.in\" target=\"_blank\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/1467904/19835326/ca62bc36-9ebd-11e6-8b37-7240d76319cd.png\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/catfan/Medoo/actions\"\u003e\u003cimg alt=\"Build Status\" src=\"https://github.com/catfan/Medoo/actions/workflows/php.yml/badge.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/catfan/medoo\"\u003e\u003cimg alt=\"Total Downloads\" src=\"https://poser.pugx.org/catfan/medoo/downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/catfan/medoo\"\u003e\u003cimg alt=\"Latest Stable Version\" src=\"https://poser.pugx.org/catfan/medoo/v/stable\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/catfan/medoo\"\u003e\u003cimg alt=\"License\" src=\"https://poser.pugx.org/catfan/medoo/license\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://opencollective.com/medoo\"\u003e\u003cimg alt=\"Backers on Open Collective\" src=\"https://opencollective.com/Medoo/backers/badge.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://opencollective.com/medoo\"\u003e\u003cimg alt=\"Sponsors on Open Collective\" src=\"https://opencollective.com/Medoo/sponsors/badge.svg\"\u003e \u003c/a\u003e\n\u003c/p\u003e\n\n\u003e The lightweight PHP database framework to accelerate development.\n\n## Features\n\n* **Lightweight** - Single-file framework with minimal dependencies.\n\n* **Easy** - Simple and intuitive API for quick integration.\n\n* **Powerful** - Supports complex SQL queries, data mapping, and SQL injection prevention.\n\n* **Compatible** - Works with MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, Oracle, Sybase, and more.\n\n* **Friendly** - Integrates seamlessly with Laravel, CodeIgniter, Yii, Slim, and other PHP frameworks.\n\n* **Free** - Licensed under MIT, free to use for any purpose.\n\n## Requirements\n\n- PHP 7.3 or later\n- PDO extension enabled\n\n## Get Started\n\n### Install via composer\n\nAdd Medoo to the `composer.json` configuration file.\n```bash\n$ composer require catfan/medoo\n```\n\nThen update Composer\n```bash\n$ composer update\n```\n\n```php\n// Require Composer's autoloader\nrequire 'vendor/autoload.php';\n\n// Import Medoo namespace\nuse Medoo\\Medoo;\n\n// Initialize database connection\n$database = new Medoo([\n    'type' =\u003e 'mysql',\n    'host' =\u003e 'localhost',\n    'database' =\u003e 'name',\n    'username' =\u003e 'your_username',\n    'password' =\u003e 'your_password'\n]);\n\n// Insert data\n$database-\u003einsert('account', [\n    'user_name' =\u003e 'foo',\n    'email' =\u003e 'foo@bar.com'\n]);\n\n// Retrieve data\n$data = $database-\u003eselect('account', [\n    'user_name',\n    'email'\n], [\n    'user_id' =\u003e 50\n]);\n\necho json_encode($data);\n\n// [{\n//    \"user_name\" : \"foo\",\n//    \"email\" : \"foo@bar.com\",\n// }]\n```\n\n## Contribution Guidelines\nBefore submitting a pull request, ensure compatibility with multiple database engines and include unit tests when possible.\n\n### Testing \u0026 Code Style\n- Run `phpunit tests` to execute unit tests.\n- Use `php-cs-fixer fix` to enforce code style consistency.\n\n### Commit Message Format\nEach commit should begin with a tag indicating the type of change:\n\n- `[fix]` for bug fixes\n- `[feature]` for new features\n- `[update]` for improvements\n\nKeep contributions simple and well-documented.\n\n## License\n\nMedoo is released under the MIT License.\n\n## Links\n\n* Official website: [https://medoo.in](https://medoo.in)\n\n* Documentation: [https://medoo.in/doc](https://medoo.in/doc)\n\n* Twitter: [https://twitter.com/MedooPHP](https://twitter.com/MedooPHP)\n\n* Open Collective: [https://opencollective.com/medoo](https://opencollective.com/medoo)\n\n## Support Our Other Product\n[Gear Browser - Web Browser for Geek](https://gear4.app)\n\n[![Gear Browser](https://github.com/catfan/Medoo/assets/1467904/bc5059d4-6a2d-4bbf-90d9-a9f71bae3335)](https://gear4.app)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatfan%2Fmedoo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcatfan%2Fmedoo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcatfan%2Fmedoo/lists"}