{"id":37005102,"url":"https://github.com/brandonbest/php-unittest-sqlite","last_synced_at":"2026-01-14T00:39:36.388Z","repository":{"id":62496670,"uuid":"285739672","full_name":"brandonbest/php-unittest-sqlite","owner":"brandonbest","description":"Limit the number of migrations/seeders run during phpunit tests with Sqlite. Designed for repos with a large number of migrations/seeders to quickly refresh the database.","archived":false,"fork":false,"pushed_at":"2021-09-22T21:49:07.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-07T19:19:15.414Z","etag":null,"topics":["laravel","lumen","phpunit-tests","sqlite"],"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/brandonbest.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":"2020-08-07T04:48:42.000Z","updated_at":"2021-09-22T21:49:10.000Z","dependencies_parsed_at":"2022-11-02T11:45:45.960Z","dependency_job_id":null,"html_url":"https://github.com/brandonbest/php-unittest-sqlite","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/brandonbest/php-unittest-sqlite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbest%2Fphp-unittest-sqlite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbest%2Fphp-unittest-sqlite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbest%2Fphp-unittest-sqlite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbest%2Fphp-unittest-sqlite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brandonbest","download_url":"https://codeload.github.com/brandonbest/php-unittest-sqlite/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brandonbest%2Fphp-unittest-sqlite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"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":["laravel","lumen","phpunit-tests","sqlite"],"created_at":"2026-01-14T00:39:36.298Z","updated_at":"2026-01-14T00:39:36.374Z","avatar_url":"https://github.com/brandonbest.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PHP UnitTest Sqlite\n\nThis package optimizes unit testing speed, especially for packages with a large number of migrations and/or seeders.\n\nThe package works by managing two copies of a sqlite database, `base` and `copy`. Migrations and seeders are run on `copy` if `base` does not exist.\n`Copy` is cloned into `base`. Every unit test with `RefreshDatabase` trait will delete `copy` and clone `base` into `copy`.\n\n`Base` is deleted at the end of the unit test (you can keep `Base` around with a simple configuration update).\n\n---\n\n# Setup\n\n## Install\n\n```\ncomposer require --dev brandonbest/php-unittest-sqlite\n```\n\n## PHP Unit\n\nAdd the following listener to phpunit.xml.\n\n```\n\u003clisteners\u003e\n    \u003clistener class=\"BrandonBest\\UnittestSqlite\\DatabaseTestListener\"/\u003e\n\u003c/listeners\u003e\n```\n\n## Commands\n\n```php artisan sqlite:delete```\nDeletes the `base` file.\n\n## Future Plans\n\n - Automatically detect new migrations and update the base sqlite\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonbest%2Fphp-unittest-sqlite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrandonbest%2Fphp-unittest-sqlite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrandonbest%2Fphp-unittest-sqlite/lists"}