{"id":43817214,"url":"https://github.com/srimaln91/sql-dumper","last_synced_at":"2026-02-06T00:36:40.680Z","repository":{"id":57058567,"uuid":"104889261","full_name":"srimaln91/sql-dumper","owner":"srimaln91","description":"A simple command line application which can be used to maintain database versions with your source code.","archived":false,"fork":false,"pushed_at":"2018-08-09T18:09:57.000Z","size":27,"stargazers_count":8,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-23T18:08:55.314Z","etag":null,"topics":["database-backup","database-dump","database-version-control"],"latest_commit_sha":null,"homepage":"","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/srimaln91.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}},"created_at":"2017-09-26T13:36:56.000Z","updated_at":"2025-02-15T10:01:16.000Z","dependencies_parsed_at":"2022-08-24T14:53:21.036Z","dependency_job_id":null,"html_url":"https://github.com/srimaln91/sql-dumper","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/srimaln91/sql-dumper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srimaln91%2Fsql-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srimaln91%2Fsql-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srimaln91%2Fsql-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srimaln91%2Fsql-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srimaln91","download_url":"https://codeload.github.com/srimaln91/sql-dumper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srimaln91%2Fsql-dumper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29140401,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:14:48.546Z","status":"ssl_error","status_checked_at":"2026-02-05T23:14:35.724Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-backup","database-dump","database-version-control"],"created_at":"2026-02-06T00:36:40.211Z","updated_at":"2026-02-06T00:36:40.674Z","avatar_url":"https://github.com/srimaln91.png","language":"PHP","readme":"# SQL Dumper\n\nA PHP command line application to dump databases into your source code. This can be very useful if you need to version control your database along with the source code.\n\n## Getting Started\n\nThis package is available on packagist. You can use following commands to add this package into your composer dev dependancies.\n\n``` composer require srimaln91/sql-dumper --dev```\n\n### Prerequisites\n\nYou need to have mysql and mysqldump binaries installed on your system. This package uses native mysql binaries to create and restore dumps.\n\n\n### Installing\n\nPlease follow below steps to configure this application.\n\n``` composer require srimaln91/sql-dumper --dev```\n\n### Configuration\n\nYou need to create a config.yml file in your project root. Below is the default config file.\n\n```\n---\ndatabase:\n  hostname: localhost\n  database: xxxxx\n  username: xxxxx\n  password: xxx\n  port: 3306\nbinaries:\n  mysql: \"/usr/bin/mysql\"\n  git: \"/usr/bin/git\"\ndirectory:\n  db: \"/path/to/your/dump/directory/\"\n  ```\n\n## How to generate a database dump\n\nYou can execute below command to create a new dump or update an existing dump directory\n\n``` vendor/bin/application db:dump ```\n\n### How to restore a database dump\n\nPlease use below command\n\n```\nvendor/bin/application db:restore\n```\n\n## Authors\n\n* **Srimal Nishantha** - \n[GitHub](https://github.com/srimaln91)\n\nSee also the list of [contributors](https://github.com/srimaln91/sql-dumper/graphs/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrimaln91%2Fsql-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrimaln91%2Fsql-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrimaln91%2Fsql-dumper/lists"}