{"id":19036941,"url":"https://github.com/tomshaw/laravel-database-export","last_synced_at":"2026-02-20T06:03:17.846Z","repository":{"id":206598227,"uuid":"717267996","full_name":"tomshaw/laravel-database-export","owner":"tomshaw","description":"A Laravel database export console command.","archived":false,"fork":false,"pushed_at":"2025-02-03T03:10:44.000Z","size":31,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-03T18:57:35.344Z","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":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomshaw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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}},"created_at":"2023-11-11T00:38:36.000Z","updated_at":"2025-02-07T11:31:38.000Z","dependencies_parsed_at":"2024-03-04T05:47:13.486Z","dependency_job_id":null,"html_url":"https://github.com/tomshaw/laravel-database-export","commit_stats":null,"previous_names":["tomshaw/laravel-database-export"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tomshaw/laravel-database-export","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-database-export","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-database-export/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-database-export/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-database-export/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomshaw","download_url":"https://codeload.github.com/tomshaw/laravel-database-export/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomshaw%2Flaravel-database-export/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29642907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T05:21:04.652Z","status":"ssl_error","status_checked_at":"2026-02-20T05:21:04.238Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2024-11-08T21:58:11.989Z","updated_at":"2026-02-20T06:03:17.834Z","avatar_url":"https://github.com/tomshaw.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Database Export 💾\n\n![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/tomshaw/laravel-database-export/run-tests.yml?branch=master\u0026style=flat-square\u0026label=tests)\n![issues](https://img.shields.io/github/issues/tomshaw/laravel-database-export?style=flat\u0026logo=appveyor)\n![forks](https://img.shields.io/github/forks/tomshaw/laravel-database-export?style=flat\u0026logo=appveyor)\n![stars](https://img.shields.io/github/stars/tomshaw/laravel-database-export?style=flat\u0026logo=appveyor)\n[![GitHub license](https://img.shields.io/github/license/tomshaw/laravel-database-export)](https://github.com/tomshaw/laravel-database-export/blob/master/LICENSE)\n\nA Laravel database export console command. Supports MySQL, PostgreSQL and SQL Server.\n\n## Requirements\n\n- PHP 8.3, 8.4, or 8.5\n- Laravel 12\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require tomshaw/laravel-database-export\n```\n\n## Usage\n\nYou can use the command like this:\n\n```bash\nphp artisan db:export\n```\n\nYou can also provide a password for the zip file:\n\n```bash\nphp artisan db:export --password=yourpassword\n```\n\n## Configuration\n\nThe command uses the following configuration keys:\n\n- `database-export.disks.backup_filename`: The base filename for the backup.\n- `database-export.disks.backup_directory`: The directory where the backup files will be stored.\n\n## Description\n\nThe `Database Export` command does the following:\n\n1. Checks if the `ZipArchive` class is available.\n2. Retrieves the database connection details from the environment variables.\n3. Builds the command to export the database based on the database connection.\n4. Executes the command and saves the output to a file.\n5. Creates a zip file and adds the output file to it.\n6. Deletes the output file.\n7. Prints a success message.\n\n## Support\n\nIf you have any issues or questions, please open an issue on the GitHub repository.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## License\n\nThe MIT License (MIT). See [License File](LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomshaw%2Flaravel-database-export","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomshaw%2Flaravel-database-export","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomshaw%2Flaravel-database-export/lists"}